forked from dcosson/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbashrc_linux
41 lines (31 loc) · 987 Bytes
/
bashrc_linux
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
###
### Linux-specific .bashrc file (particularly for servers & dev vm's)
###
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
HISTFILESIZE=100000
HISTSIZE=10000
### Source my general (osx or linux) bash setup
[[ -f ~/.bash_includes ]] && source ~/.bash_includes
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"
### Prompt
BOX_LABEL="[Party Box]"
if [ -f /etc/box_label ] ; then
BOX_LABEL="$(cat /etc/box_label)"
fi
PROMPT_WARNING="No warning for now...\n"
if [ -f /etc/box_prompt_warning] ; then
BOX_LABEL="$(cat /etc/box_prompt_warning)"
fi
# color the messages
case "$TERM" in
xterm-color | xterm-256color)
PROMPT_WARNING="${txtred}${PROMPT_WARNING}${txtend}"
BOX_LABEL="${txtorange}${BOX_LABEL}${txtend}"
;;
esac
PS1="${txtgreen}\u@\h:${txtend}${txtblue}\w\$ ${txtend}"
PS1="${PROMPT_WARNING}${BOX_LABEL} $PS1"
### Aliases & Functions
alias ack='ack-grep'