2016-11-10 10:37:15 -08:00
|
|
|
#
|
|
|
|
# These aliases will be common to Bash and Zsh shells
|
|
|
|
#
|
|
|
|
|
2016-10-19 07:56:37 -07:00
|
|
|
alias q='exit'
|
|
|
|
alias clr='clear'
|
|
|
|
alias sudo='sudo '
|
|
|
|
|
|
|
|
alias ..='cd ..'
|
|
|
|
alias ...='cd ../..'
|
|
|
|
alias ....='cd ../../..'
|
|
|
|
alias -- -='cd -'
|
|
|
|
|
2016-11-10 09:35:10 -08:00
|
|
|
alias ln="${aliases[ln]:-ln} -v" # verbose ln
|
2016-10-19 07:56:37 -07:00
|
|
|
alias ls="${aliases[ls]:-ls} --group-directories-first"
|
|
|
|
alias l='ls -l'
|
|
|
|
alias ll='ls -la'
|
|
|
|
|
2016-11-10 09:35:10 -08:00
|
|
|
alias pubkey='cat ~/.ssh/id_rsa.pub | y | echo "Public key copied to pasteboard."'
|
|
|
|
|
|
|
|
# For example, to list all directories that contain a certain file: find . -name
|
|
|
|
# .gitattributes | map dirname
|
|
|
|
alias map="xargs -n1"
|
|
|
|
|
|
|
|
take() { mkdir "$1" && cd "$1"; }
|
|
|
|
hex() { echo -n $@ | xxd -psdu; }
|