forked from unn/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bash_profile
51 lines (38 loc) · 1.24 KB
/
bash_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
46
47
48
49
50
51
export OS=`uname`
source ~/dotfiles/bash/aliases
source ~/dotfiles/bash/paths
source ~/dotfiles/bash/completions
bind 'set completion-ignore-case on'
bind 'set completion-prefix-display-length 2'
bind 'set completion-map-case on'
bind 'set completion-query-items 9001'
bind 'set show-all-if-ambiguous on'
bind 'set show-all-if-unmodified on'
bind 'set mark-directories on'
bind 'set mark-symlinked-directories on'
bind 'set page-completions off'
bind 'set visible-stats on'
export EDITOR=vim
shopt -s cdspell
export HISTFILESIZE=10000
export HISTSIZE=10000
# avoid duplicates..
export HISTCONTROL=ignoredups:erasedups
# append history entries..
shopt -s histappend
_update_ps1() {
export PS1="$($HOME/dotfiles/repos/powerline/powerline-shell.py $?)"
}
export PROMPT_COMMAND="history -a; history -c; history -r; _update_ps1"
# use .localrc for settings specific to one system
if [ -f ~/.localrc ]; then
source ~/.localrc
fi
# set PATH so it includes Support-Tools bin
if [ -d "/Users/david.stoline/Support-Tools/bin" ] ; then
export PATH="/Users/david.stoline/Support-Tools/bin:$PATH"
fi
# set bastion function to use
function bastion { mywik ; }
# set ahtools autocomplete
complete -W '$(/Users/david.stoline/Support-Tools/aht --autocomplete)' aht