#!/usr/bin/env bash # 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 && sudo apt-get clean && sudo apt-get autoremove' # 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" # 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$//'\'')"' # Docker & Docker Compose alias dc="docker-compose"