2016-05-07 20:56:50 +02:00
|
|
|
|
|
|
|
# some more ls aliases
|
|
|
|
alias ll='ls -alF'
|
|
|
|
alias la='ls -A'
|
|
|
|
alias l='ls -CF'
|
|
|
|
|
|
|
|
# Easier navigation: .., ..., ~
|
|
|
|
alias ..="cd .."
|
|
|
|
alias ...="cd ../.."
|
|
|
|
alias ~="cd ~"
|
|
|
|
|
|
|
|
# Update All The Things
|
|
|
|
alias update='sudo apt-get update && sudo apt-get upgrade -y'
|
|
|
|
|
|
|
|
# Copy public key to pasteboard
|
|
|
|
alias pubkey="more ~/.ssh/id_rsa.pub | pbcopy | printf '=> Public key copied to pasteboard.\n'"
|
|
|
|
|
|
|
|
# When there's need for nyaning around
|
|
|
|
alias nyan="telnet nyancat.dakko.us"
|
2016-05-07 21:40:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
# Add an "alert" alias for long running commands. Use like so:
|
|
|
|
# sleep 10; alert
|
|
|
|
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
|