-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_profile
57 lines (45 loc) · 1.52 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
# Load RVM
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
# ls with color
alias ls="ls -G"
alias la="ls -alG"
# Get current IP
alias ip="curl http://ifconfig.me/ip"
# Suspend session
alias poopin='/System/Library/CoreServices/"Menu Extras"/User.menu/Contents/Resources/CGSession -suspend'
# Data graph
alias datafart='curl --data-binary @- datafart.com'
# Quicker Working Directory change
alias cpwd='pwd | pbcopy'
alias ppwd='cd `pbpaste`'
# Vim Aliases
alias vil="vim \`ls -t | head -n 1\`" # Open last modified file
#alias vi="/usr/local/Cellar/vim/7.3.548/bin/vim" # Use latest version of VIM
# Promptline
export PS1='\[\e[0;30m\]\t\[\e[m\] \[\e[0;34m\]\u\[\e[m\] \[\e[0;33m\]\w\[\e[m\] \[\e[0;30m\]❯\[\e[m\] '
# Other env variables
export EDITOR='vi'
export GNUTERM='x11'
export DISPLAY=":0"
export MANPAGER="col -b | vim -c 'set ft=man ts=8 colorcolumn=0 nomod nolist nonu noma' -"
export PATH="/Users/anthony/bin/:$PATH"
export GOROOT="/usr/local/go"
export GOPATH="/Users/anthony/.go"
export GOBIN="${GOPATH}/bin"
# Setup Amazon EC2 Command-Line Tools
export EC2_HOME=~/.ec2
export PATH=$PATH:$EC2_HOME/bin
export EC2_KEYPAIR=macbook
export EC2_URL=https://ec2.us-west-1.amazonaws.com
export EC2_PRIVATE_KEY=`ls $EC2_HOME/pk-*.pem`
export EC2_CERT=`ls $EC2_HOME/cert-*.pem`
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
# Get a word definition
getdef(){
if [[ $# -ge 2 ]] ; then
echo "getdef: too many arguments" >&2
return 1
else
curl "dict://dict.org/d:$1"
fi
}