forked from ambv/.dot_files
-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile
35 lines (31 loc) · 779 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
#
# 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
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
export HISTCONTROL=erasedups
export HISTSIZE=10000
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