-
Notifications
You must be signed in to change notification settings - Fork 0
/
.aliases
55 lines (38 loc) · 1.71 KB
/
.aliases
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
alias lsa="exa -al"
alias lsnd="ls -p | grep -v /"
alias desktop="cd ~/Desktop"
alias mvimo="open\"mvim://open?url=file://$1\""
alias airportcycle='networksetup -setairportpower airport off; networksetup -setairportpower airport on'
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias javafuck='eval $(!!:gs/.class)'
alias fuck='eval $(thefuck $(fc -ln -1))'
# You can use whatever you want as an alias, like for Mondays:
alias FUCK='fuck'
alias npmlsa="npm list -g --depth=0"
alias cleanup="find . -type f -name '*.DS_Store' -ls -delete"
# Trim new lines and copy to clipboard
alias c="tr -d '\n' | pbcopy"
# OS X has no `md5sum`, so use `md5` as a fallback
command -v md5sum > /dev/null || alias md5sum="md5"
# OS X has no `sha1sum`, so use `shasum` as a fallback
command -v sha1sum > /dev/null || alias sha1sum="shasum"
alias adminmongoshell="mongo -u cy --authenticationDatabase admin -p"
alias apachecycle="sudo apachectl restart"
alias pngout='~/Desktop/stuff/dev/pngout/pngout'
alias fweather='finger [email protected]'
alias tmux-kill-all="tmux ls | grep : | cut -d. -f1 | awk '{print substr($1, 0, length($1)-1)}' | xargs kill"
alias gcm="git commit -m "
alias rm=trash
alias reloadbash='. ~/.bash_profile'
alias wiki='telnet telnet.wmflabs.org'
alias subl='reattach-to-user-namespace subl'
alias rvmruby='source /Users/chinying/.rvm/scripts/rvm'
alias genvenv='python3 -m venv '
# alias psql='/Applications/Postgres.app/Contents/Versions/latest/bin/psql'
alias postgresup='postgres -D /usr/local/var/postgres'
alias nocors='open -a Google\ Chrome\ Canary --args --disable-web-security --user-data-dir'
alias pyutest='python3 -m unittest'
alias pyserve='python3 -m http.server'