-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_profile
39 lines (30 loc) · 1.02 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
#!/bin/bash
# bash_profile
declare -a files=(
$HOME/.bash/config # Configuration
$HOME/.bash/aliases # Aliases
$HOME/.bash/private_aliases # Aliases
$HOME/.bash/functions/* # Functions
$HOME/.bash/prompt # Custom bash prompt
$HOME/.bash/paths # Path modifications (must source after `.bash_profile.local` in case of custom `brew` location)
)
# If these files are readable, source them
for index in ${!files[*]}
do
if [[ -r ${files[$index]} ]]; then
source ${files[$index]}
fi
done
unset files
# Only use `brew` after it has been added to the PATH
bash_completion_path="$(brew --prefix)/etc/bash_completion"
# Source Bash completion (installed via Homebrew)
if [[ -r $bash_completion_path ]]; then
source $bash_completion_path
fi
# MacPorts Installer addition on 2013-03-02_at_17:52:01: adding an appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export PATH="$HOME/bin:$PATH"
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi