-
Notifications
You must be signed in to change notification settings - Fork 2
/
.bash_profile
55 lines (46 loc) · 1.61 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
export PATH=/usr/local/Cellar/python/2.7.9/bin:$PATH:~/bin
export PATH=$PATH:/usr/local/bin/
export PATH="$HOME/Library/Haskell/bin:$PATH"
export PATH="$HOME/.local/bin:$PATH"
export PATH="$PATH:$HOME/.rvm/bin"
export TERM=screen-256color
export HOMEBREW_NO_AUTO_UPDATE=1
export NVM_DIR="$HOME/.nvm"
alias nvm="unalias nvm && source $NVM_DIR/nvm.sh && nvm"
export PATH="$HOME/.nvm/versions/node/v12.9.0/bin:$PATH"
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
alias s=subl
alias g=git
alias e="emacsclient -nw --alternate-editor="" -c "$@""
alias y=yarn
alias n="npm run"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
source ~/.git-prompt.sh
export PROMPT_COMMAND='__git_ps1 "\[\033[0;31m\]\u\[\033[0m\]@\[\033[0;34m\]\h\[\033[0;36m\] \w\[\033[0m\]" "\n\[\033[32m\]»\[\033[0m\] "'
export HISTFILESIZE=10000
export GIT_PS1_SHOWDIRTYSTATE=1
export GIT_PS1_SHOWCOLORHINTS=1
export GIT_PS1_SHOWUPSTREAM="auto"
export GIT_PS1_SHOWUNTRACKEDFILES=1
export CLICOLOR=1
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
alias grep='grep --color=auto'
alias ls='ls -G'
alias ll='ls -la'
alias gbc="git branch 2> /dev/null | grep -e ^* | awk '{ print \$2 }' | pbcopy"
alias be='bundle exec'
alias rm=trash
alias t='trans :nl'
dotenv() {
eval "$(cat .env | sed 's/^/export /g' | sed 's/=/=\"/g' | sed 's/$/"/g')"
}
unset-docker-machine() {
eval "$(docker-machine env --unset)"
}
npminfest () {
export PATH="$(pwd)/node_modules/.bin:$PATH";
}
# Load specific bash profile for the project I'm current working on
if [ -f ~/.current_project_bash ]; then
source ~/.current_project_bash
fi