-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaliases.sh
35 lines (26 loc) · 893 Bytes
/
aliases.sh
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
# directory navigation
alias '..'='cd ../'
alias '...'='cd ../../'
# use gnu ls from brew coreutils; see scripts/macos.sh
alias ls='gls --color=auto --group-directories-first -lAp'
# typo correction
alias 'mate.'='mate .'
# jump to docs
alias joi='open https://github.com/hapijs/joi/blob/master/API.md'
alias hapi='open http://hapijs.com/api'
alias labc='open https://github.com/hapijs/code/blob/master/API.md'
alias lab='open https://github.com/hapijs/lab/blob/master/README.md'
# better built-ins
alias guid='uuidgen | tr "[:upper:]" "[:lower:]"'
alias unixtime='date -j -f "%a %b %d %T %Z %Y" "`date`" "+%s"'
# git related
alias brs='git brs | tail'
alias gg='git difftool'
alias ggg='git difftool HEAD'
alias gp='git push'
# node.js REPL
alias ns='node --use-strict'
# go to this directory
alias dot='cd ~/dotfiles'
# formatting
alias pbj='pbpaste | jq . | tee /dev/tty | pbcopy'