-
Notifications
You must be signed in to change notification settings - Fork 0
/
bashrc
executable file
·42 lines (34 loc) · 956 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
36
37
38
39
40
41
42
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
if [ -f /opt/homebrew/bin/brew ]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
brewPrefix=/opt/homebrew
if [ -f $brewPrefix/etc/bash_completion ]; then
. $brewPrefix/etc/bash_completion
fi
if [ -f $brewPrefix/etc/bash_completion.d/git-completion.bash ]; then
. $brewPrefix/etc/bash_completion.d/git-completion.bash
fi
if [ -f $brewPrefix/etc/bash_completion.d/git-prompt.sh ]; then
. $brewPrefix/etc/bash_completion.d/git-prompt.sh
fi
else
sources=( \
"/usr/share/doc/git/contrib/completion/git-completion.bash" \
"/usr/share/doc/git/contrib/completion/git-prompt.sh" \
"/usr/share/bash-completion/completions/git" \
)
for f in "${sources[@]}"
do
if [ -f "$f" ]; then
source "$f"
fi
done
fi
export TERM='xterm-256color'
source ~/.bash/env.bash
source ~/.bash/local.bash
source ~/.bundle.bash