-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
42 lines (27 loc) · 1.1 KB
/
.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
36
37
38
39
40
41
export SHELL=/bin/bash
[[ ! -e $HOME/.shell_interactive.sh ]] || source "$HOME"/.shell_interactive.sh
source "$HOME"/.bash_functions
#---------- brew completions
if type brew &>/dev/null; then
HOMEBREW_PREFIX="$(brew --prefix)"
if [[ -r "${HOMEBREW_PREFIX}/etc/profile.d/bash_completion.sh" ]]; then
source "${HOMEBREW_PREFIX}/etc/profile.d/bash_completion.sh"
else
for COMPLETION in "${HOMEBREW_PREFIX}/etc/bash_completion.d/"*; do
[[ -r "$COMPLETION" ]] && source "$COMPLETION"
done
fi
fi
#---------- direnv - https://github.com/direnv/direnv
eval "$(direnv hook bash)"
#---------- set shell prompt
export PS1='\[\e[0;31m\][\D{%Y-%m-%d} \t]\[\e[m\]\[\e[0;37m\]\u@\h\[\e[m\]\[\e[0;32m\][$HOSTTYPE][\w]\[\e[m\]\n> '
#---------- fzf
[ -f "$HOME"/.fzf.bash ] && source "$HOME"/.fzf.bash
#---------- google cloud sdk
if [ -f "$HOME"/.local/google-cloud-sdk/path.bash.inc ]; then
source "$HOME"/.local/google-cloud-sdk/path.bash.inc
source "$HOME"/.local/google-cloud-sdk/completion.bash.inc
fi
#---------- bit https://github.com/chriswalz/bit
complete -C $HOME/.local/bin/bit bit