-
Notifications
You must be signed in to change notification settings - Fork 4
/
profile
45 lines (40 loc) · 924 Bytes
/
profile
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
42
43
44
45
#
# Bash-specific profile. For Zsh specific look at zshrc,
# for common variables look at profile_common.
#
#
# the prompt
#
if [ -e ~/.pscolors ]; then
source ~/.pscolors
fi
export PS1="$PS_USERCOLOR\\u$PS_ATCOLOR@$PS_HOSTCOLOR\\H$PS_COLONCOLOR:$PS_PATHCOLOR\\w$PS_PROMPTCOLOR $ $PS_NOCOLOR"
#
# my Bash modifications
#
shopt -s histappend cdspell
case "$TERM" in
xterm*|rxvt*)
bind Space:magic-space
bind -m vi-insert "\C-n":menu-complete
bind -m vi-insert "\C-p":dynamic-complete-history
bind -m vi-insert "\C-a":vi-append-eol
esac
export HISTCONTROL=erasedups
export HISTSIZE=200000
set -o vi
source ~/.profile_common
#
# load Bash completion if found
#
if [ -f /opt/local/etc/bash_completion ]; then
. /opt/local/etc/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
#
# execute local-specific settings
#
if [ -e ~/.profile_local ]; then
source ~/.profile_local
fi