-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bash_profile
More file actions
102 lines (76 loc) · 2.96 KB
/
.bash_profile
File metadata and controls
102 lines (76 loc) · 2.96 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
export PGDATA=/usr/local/var/postgres
export PATH=/usr/local/bin:$PATH
export PATH=$PATH:/usr/local/git/bin
export PATH=/usr/local/sbin:$PATH
export PATH=$PATH:$HOME/utilities
export PYTHONPATH=$PYTHONPATH:/Users/colinmeret/anaconda/lib/python2.7/site-packages
export PYTHONSTARTUP=$HOME/.startup_script.py
export EDITOR=/usr/local/Cellar/vim/8.0.1450_1/bin/vim
export NODE_ENV='local'
export GOPATH=$HOME/.gocode/
if [ -f ~/.bash_variables ]; then
source ~/.bash_variables
fi
alias vi=vim
# Shortcut to edit and reload bash profile
alias rlbp='. ~/.bash_profile'
alias vibp='vi ~/.bash_profile'
# Helper to play a sound when a command finishes running
alias playdone='printf "\7"; sleep .3; printf "\7"'
# Show top ten biggest files in filesystem
alias showtopten='du -ah | sort -n -r | head -n 10'
# Found online in someone's bash profile kills all chrome helper processes
# to save memory
alias chromekill='ps ux | grep '\''[C]hrome Helper --type=renderer'\'' | grep -v extension-process | tr -s '\'' '\'' | cut -d '\'' '\'' -f2 | xargs kill'
# Start a simple httpserver in your current directory
alias http='python -m SimpleHTTPServer'
# Useful shortcuts
alias todev='cd ~/Development'
alias llaa='ls -la'
alias ll='ls -l'
alias lla='ls -a'
alias kc='kubectl'
alias prettyclipboard='pbpaste > .tmp.json; prettyjson .tmp.json | pbcopy; rm .tmp.json'
alias undep='rm -r ./ && kubectl container clusters delete test_project'
alias resetdocker='docker-machine rm default && docker-machine create --driver virtualbox default && eval $(docker-machine env default)'
# Access mongo database log file
alias mongolog='tail -f /usr/local/var/log/mongodb/mongo.log'
alias b64d='pbpaste | base64 --decode | pbcopy'
alias b64e='pbpaste | base64 | pbcopy'
findgit()
{
n=$(pwd)
while [ $n != '/' ]
do
if [ -d $n/.git ]
then
return 0
fi
n=$(dirname $n)
done
return 1
}
if [ -f ~/.gcloud-aliases ]; then
source ~/.gcloud-aliases
fi
if [ -f ~/.aliases ]; then
source ~/.aliases
fi
PS1="\\[$(tput setaf 5)\]\u \\[$(tput setaf 11)\]\W \\[$(tput setaf 6)\](\$(if findgit; then git symbolic-ref --short HEAD;fi;)) \\[$(tput setaf 10)\]$ "
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
# The next line updates PATH for the Google Cloud SDK.
if [ -f /Users/colinmeret/Downloads/google-cloud-sdk/path.bash.inc ]; then
source '/Users/colinmeret/Downloads/google-cloud-sdk/path.bash.inc'
fi
# The next line enables shell command completion for gcloud.
if [ -f /Users/colinmeret/Downloads/google-cloud-sdk/completion.bash.inc ]; then
source '/Users/colinmeret/Downloads/google-cloud-sdk/completion.bash.inc'
fi
# added by Anaconda3 4.2.0 installer
export PATH="/Users/colinmeret/anaconda/bin:$PATH"
# Start up docker-machine on startup
# if not docker variable, start up docker-machine restart default, then eval $(docker-machine env)
alias gam="/Users/colinmeret/bin/gam/gam"