This repository was archived by the owner on Jun 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_profile
73 lines (57 loc) · 2.09 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
source ~/dev-tools/git-prompt.sh
source ~/dev-tools/git-completion.bash
# prompt
export PS1="\[\e[0;37m\]\n\t \u@\h \[\e[1;36m\] \w \$(__git_ps1) \[\e[1;92m\] \n\$ \[\e[0m\] "
export CLICOLOR=1
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
HISTFILESIZE=1000000000 HISTSIZE=1000000
# Setting PATH for Python 2.7
PATH="~/.local/bin":$PATH
## Postgres data directory
export PGDATA=/usr/local/var/postgres
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
export NPM_DIR=/usr/local/Cellar/node/7.10.0/libexec/npm/bin
export PATH=$NPM_DIR:$PATH
export PATH=~/Library/Python/3.6/bin:$PATH
# nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# Setting PATH for Python 3.6
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}"
export PATH
export EDITOR='vim'
# tab completion
if command -v brew && [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)"
fi
complete -C '~/.local/bin/aws_completer' aws
cd_to_git_root()
{
if [ ! -d .git ]; then
dir=$(git rev-parse --git-dir 2> /dev/null);
if [ -n "$dir" ]; then
cd $dir && cd ..;
fi;
fi;
}
alias cdg='cd_to_git_root'
alias h='history'
alias ls='ls -G'
alias lx='ls -lxB' # sort by extension
alias ll='ls -l'
alias la='ls -Al' # show hidden files
alias gitdelmerged='git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d'
alias dco='docker-compose'
alias gsur='/usr/bin/git submodule update --recursive'
alias gvim='/Applications/MacVim.app/Contents/MacOS/Vim -g'
alias sb='source ~/.bash_profile'
alias dcodb='dco down && dco build'
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
export PATH=/usr/local/bin:$PATH