# Generic aliases alias ls="ls --color=auto" alias ll="ls --color=auto -lh" alias la="ls --color=auto -lha" alias grep="grep --color=auto" alias gvim="vim.gtk -g &> /dev/null" alias music="ncmpcpp" alias mkdir="mkdir -p" alias today="date +%Y%m%d" alias month="date +%Y%m" alias hashpw="mkpasswd -m sha-512" alias stitle="screen -X title" alias ttitle="tmux rename-window" alias q="exit" alias open="xdg-open" alias search="surfraw duckduckgo -browser=lynx" alias tlynx="torify lynx" alias tw3m="torify w3m" alias poff="sudo poweroff" alias poweroff="sudo poweroff" alias hibernate="sudo s2disk" alias jheader="jhead -dc -de -di -dx -du" alias vga="xrandr --output VGA-1" alias qemu="kvm -m 2048 -net nic,model=virtio -net user" alias showip="curl showip.net 2> /dev/null | cut -f 1 | nslookup" alias dict="surfraw wiktionary" alias ssh-unsafe="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" alias timelog="timew" alias track="timew track" alias summary="timew summary" alias timewarrior="timew" alias tails="kvm -m 2048 -cdrom ~/data/distros/tails/tails-amd64-latest.iso" alias metar="weather" alias cdcd="cd .. && cd -" # See https://wiki.archlinux.org/index.php/Display_Power_Management_Signaling alias blankoff="xset s off -dpms ; xset s noblank" alias blankon="xset s on +dpms ; xset s blank" # Version contron aliases alias fetch="mr fetch" alias ft="fetch" alias st="status" alias gs="git status" alias gd="git diff" alias gl="git log" alias co="commit" alias tig="tig --all" alias upsup="up ; sup" # Calendar alias xcal="xcal.rb" # Shell aliases alias s="shell" # Editor, avoiding "Avoiding protocol specified" error #alias vim="vim -X" #alias vi="vim -X" # Development #alias dscverify='dscverify --keyring ~/code/debian/keyring/debian-keyring.gpg --keyring /path/to/debian/keyring/keyrings/debian-maintainers.gpg' alias dquilt="quilt --quiltrc=${HOME}/.quiltrc-dpkg" alias dpkg-source='HOME=~/code/debian/keyring dpkg-source' alias dget='HOME=~/code/debian/keyring dget' # JSON # See https://stackoverflow.com/questions/352098/how-can-i-pretty-print-json-in-a-shell-script#1920585 prettyjson_string() { echo "$1" | python -m json.tool } prettyjson_file() { python -m json.tool "$1" } prettyjson_url() { curl "$1" | python -m json.tool }