diff options
| author | Thomas Schneider <thosch97@gmail.com> | 2015-05-26 21:05:48 +0200 |
|---|---|---|
| committer | Thomas Schneider <thosch97@gmail.com> | 2015-05-26 21:05:48 +0200 |
| commit | 1beacf28a0ddb0af81be36a1d036c11d011e9c46 (patch) | |
| tree | d485cb091567d9819da5dc0b5c9cbb2ef5fb8a4a | |
| parent | 9771e83ada5142e8c28a1460017596ba20b38f3d (diff) | |
.zshrc.local: Use powerline prompt
Signed-off-by: Thomas Schneider <thosch97@gmail.com>
| -rw-r--r-- | dot.zshrc.local | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/dot.zshrc.local b/dot.zshrc.local index d831fac..1bb29ae 100644 --- a/dot.zshrc.local +++ b/dot.zshrc.local @@ -1,13 +1,17 @@ . ~/.zshrc.from_grml -prompt grml -zstyle :prompt:grml:left:items:percent pre ' -' (( $+commands[bsdtar] )) && alias tar=bsdtar || echo "bsdtar not installed" alias g=git alias hl="highlight -O ansi" path=( $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 export SVN_SSH="ssh -i /home/qsuscs/.ssh/id_rsa_subversion" +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 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' |
