-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_profile
58 lines (48 loc) · 1.22 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
52
53
54
55
56
57
58
# .bash_profile
# Source global definitions
if [ -f "$HOME/.bashrc" ]; then
echo 'sourcing .bashrc'
. "$HOME/.bashrc"
fi
# Source private definitions
if [ -f "$HOME/.bash_private" ]; then
echo 'sourcing .bash_private'
. "$HOME/.bash_private"
fi
# Source work-specific definitions
if [ -f "$HOME/.bash_work_specific" ]; then
echo 'sourcing .bash_work_specific'
. "$HOME/.bash_work_specific"
fi
# Get aliases
if [ -f "$HOME/.bash_aliases" ]; then
echo 'sourcing .bash_aliases'
. "$HOME/.bash_aliases"
fi
# Get functions
if [ -f "$HOME/.bash_func" ]; then
echo 'sourcing .bash_func'
. "$HOME/.bash_func"
fi
# add home bin
if [ -d "$HOME/bin" ] ; then
PATH=$PATH:$HOME/bin
fi
# Adding bash and git completion
if echo $HOSTNAME | grep -qi "elena"; then
command -v brew > /dev/null
if [[ $? == 0 ]]; then
if [ -f $(brew --prefix)/etc/bash_completion ]; then
echo "sourcing $(brew --prefix)/etc/bash_completion"
. $(brew --prefix)/etc/bash_completion
fi
fi
fi
if [ -f ~/.git-completion.bash ]; then
echo 'sourcing .git-completion.bash'
. ~/.git-completion.bash
fi
if [ -f "$scratch/vboxmanage-bash-completion/VBoxManage" ]; then
. "$scratch/vboxmanage-bash-completion/VBoxManage"
fi
export PATH