# -*- shell-script -*- . ~/.zshrc.from_grml (( $+commands[bsdtar] )) && alias tar=bsdtar (( $+commands[chg] )) && alias hg=chg (( $+commands[nvim] )) && alias vim=nvim alias g=git alias ec="emacsclient -n" alias et="emacsclient -t" alias hl="highlight -O ansi" zstyle :prompt:grml:left:items:percent pre ' ' gpg-connect-agent /bye ssh-add -l function countdown { ENDTIME=$(date -d "$1" +%s) watch -b -e -n 1 -x sh -c 'DIFF=$(($ENDTIME - $(date +%s))); echo $(($DIFF / 60)) min $(($DIFF % 60)) s; if [ $DIFF -lt 1 ]; then exit 1; fi' } function fspass () { PASSWORD_STORE_DIR=~/RWTH/FSMPI/passwords pass $@ } function passta () { PASSWORD_STORE_DIR=~/RWTH/AStA/pass pass $@ }