dotfiles-server/.bash_aliases

27 lines
825 B
Bash
Raw Normal View History

#!/usr/bin/env bash
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
2017-05-26 00:22:46 +02:00
alias update='sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get clean && sudo apt-get autoremove'
2016-05-07 20:56:50 +02:00
# 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"
2017-07-29 19:47:35 +02:00
alias balance="nodejs ~/code/balance/balance.js"
# 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$//'\'')"'