helm/shell/aliases.sh

27 lines
616 B
Bash
Raw Normal View History

2016-11-10 10:37:15 -08:00
#
2016-11-16 06:06:41 -08:00
# These aliases are common to Bash and Zsh shells
2016-11-10 10:37:15 -08:00
#
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 -'
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'
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; }