-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
executable file
·67 lines (53 loc) · 1.85 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
export EDITOR="atom --wait --new-window"
export VISUAL="atom --wait --new-window"
# Android SDK Variables
export PATH="$HOME/Android/sdk/tools:$PATH"
export PATH="$HOME/Android/sdk/platform-tools:$PATH"
# AWS & BOTO
export BOTO_CONFIG="~/.aws/config"
complete -C aws_completer aws
#Postgres
export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/latest/bin
# Swapping from PHP 5.5 to PHP 5.6
export PATH="$(brew --prefix homebrew/php/php56)/bin:$PATH"
# Get the aliases and functions
if [ -f $(brew --prefix)/etc/bash_completion.d/git-completion.bash ]; then
. $(brew --prefix)/etc/bash_completion.d/git-completion.bash
fi
if [ -f $(brew --prefix)/etc/bash_completion.d/git-prompt.sh ]; then
. $(brew --prefix)/etc/bash_completion.d/git-prompt.sh
fi
# Terminal location Functions
__git_repo () {
local g="$(__gitdir)"
local repo_dir=""
if [ -n "$g" ]; then
if [ ! ".git" == "$g" ]; then
git_dir=`dirname $g`
repo_dir=`basename $git_dir`
printf "$repo_dir"
fi
fi
}
export GIT_PS1_SHOWDIRTYSTATE=1
export PS1='[$(__git_repo)\[\033[0;34m\]\W\[\033[0;35m\]$(__git_ps1 " (%s)")\[\033[0m\]]\$ '
for script in $BOXEN_SRC_DIR/dotfiles/lib/*.sh ; do
if [ -r $script ] ; then
. $script
fi
done
# Papertrail Config
# Ansible Custom Config
export ANSIBLE_HOME="$BOXEN_SRC_DIR/ansible"
export PATH="$BOXEN_SRC_DIR/ansible/bin:$PATH"
export ANSIBLE_LIBRARY="$ANSIBLE_HOME/lib/ansible/modules/core/:$ANSIBLE_HOME/lib/ansible/modules/extras/"
export ANSIBLE_MODULE_PATH="$ANSIBLE_HOME/library/"
export ANSIBLE_CUSTOM_HOME="~/my/ansible"
export ANSIBLE_CONFIG="$ANSIBLE_CUSTOM_HOME/ansible.cfg"
export MANPATH="$MANPATH$ANSIBLE_HOME/docs/man:"
export PYTHONPATH="$BOXEN_SRC_DIR/ansible/lib"
# Pyenv requires reload
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
pyenv rehash