aboutsummaryrefslogtreecommitdiff
path: root/dot.zshrc.local
blob: 2204cc788cdfa23b4ea3b5e55777b9d037b58263 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
. ~/.zshrc.from_grml
(( $+commands[bsdtar] )) && alias tar=bsdtar || echo "bsdtar not installed"
alias g=git
alias ec="emacsclient -n"
alias hl="highlight -O ansi"
path=( $HOME/.gem/ruby/*/bin(/N) $HOME/.cabal/bin(/N) $HOME/.go/bin(/N) $HOME/.local/bin(/N) $path /usr/sbin(/N) /usr/local/sbin(/N) /sbin(/N) )
typeset -xU path
if [[ -e ~/.local/lib/python2.7/site-packages/powerline/bindings/zsh/powerline.zsh ]]; then
	prompt off
	. ~/.local/lib/python2.7/site-packages/powerline/bindings/zsh/powerline.zsh
else
	zstyle :prompt:grml:left:items:percent pre '
'
fi
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 $@
}