-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.bash_profile
31 lines (23 loc) · 887 Bytes
/
.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
#!/bin/bash
# set -o vi
[[ -f "$HOME/.sensible.bash" ]] && source "$HOME/.sensible.bash"
[[ -f /usr/local/etc/bash_completion ]] && source /usr/local/etc/bash_completion
[[ -f "$HOME/.ssh/config" ]] && complete -o default -W "$(awk '/^Host / {print $2}' < "$HOME/.ssh/config")" scp sftp ssh
[[ -f "$HOME/.shellrc" ]] && source "$HOME/.shellrc"
[[ -f "$HOME/.fzf.bash" ]] && source "$HOME/.fzf.bash"
[[ -f "$HOME/.cargo/env" ]] && source "$HOME/.cargo/env"
eval "$(direnv hook bash)"
shopt -s nocaseglob
shopt -s histappend
shopt -s cdspell
shopt -s globstar
DARKGRAY='\[\e[1;30m\]'
LIGHTGREEN='\[\e[1;32m\]'
LIGHTGRAY='\[\e[1;37m\]'
LIGHTCYAN='\[\e[1;96m\]'
WHITE='\[\e[1;37m\]'
NC='\[\e[0m\]' # reset color
if command -v __git_ps1 &>/dev/null; then
branch='`__git_ps1 " (%s)"`'
fi
export PS1="${LIGHTCYAN}\h ${NC}\w${LIGHTGRAY}${branch}${NC} ${WHITE}\u ${LIGHTGREEN}\$${NC} "