-
Notifications
You must be signed in to change notification settings - Fork 15
/
.bashrc
36 lines (26 loc) · 827 Bytes
/
.bashrc
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
case $- in
*i*) ;;
*) return;;
esac
HISTCONTROL=ignoreboth:erasedupes
shopt -s histappend
shopt -s checkwinsize
HISTSIZE=1000
HISTFILESIZE=2000
PS1='\[\e[0;32m\][\u \h] \[\e[0;33m\][\W$(_gb)] \[\e[0;31m\]\$\[\e[39m\] '
if shopt -oq posix; then :; else
if [ -s /etc/bash_completion ]; then
. /etc/bash_completion
elif [ -s /usr/local/etc/bash_completion ]; then
. /usr/local/etc/bash_completion
fi
fi
[ -s "$HOME/.shenv" ] && source "$HOME/.shenv"
[ -s "$HOME/.aliases" ] && source "$HOME/.aliases"
FASD_CACHE="$HOME/.fasd-init-bash"
if [ "$(which fasd)" -nt "$FASD_CACHE" -o ! -f "$FASD_CACHE" ]; then
fasd --init posix-alias bash-{hook,ccomp,ccomp-install} >| "$FASD_CACHE"
fi
source "$FASD_CACHE"
_fasd_bash_hook_cmd_complete z e m
[ -s "$HOME/.bashrc.local" ] && source "$HOME/.bashrc.local"