diff options
author | 2014-08-21 00:14:54 +0200 | |
---|---|---|
committer | 2014-08-21 00:14:54 +0200 | |
commit | e53667c7ee8d6fde268dfd48b308f0e38f729013 (patch) | |
tree | 585e20f63c73ac4f0d059c2321edb29ac1454925 /zsh/functions/prompt | |
parent | 98b55322b42c784580b6e6fc787d7ce97af033d8 (diff) | |
download | dotfiles-e53667c7ee8d6fde268dfd48b308f0e38f729013.tar.gz dotfiles-e53667c7ee8d6fde268dfd48b308f0e38f729013.zip |
Restore zsh config
Diffstat (limited to 'zsh/functions/prompt')
-rw-r--r-- | zsh/functions/prompt | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/zsh/functions/prompt b/zsh/functions/prompt deleted file mode 100644 index 6fe927b..0000000 --- a/zsh/functions/prompt +++ /dev/null @@ -1,15 +0,0 @@ -# -*- mode: shell-script; eval: (git-auto-commit-mode 1) -*- - -local pac_cnt=$(get_cnt updates) -local aur_cnt=$(get_cnt aur) -local hostname=$(hostname | cut -d . -f 1) - -if [ $pac_cnt -gt 0 -o $aur_cnt -gt 0 ]; then - printf "%s%d%s/%s%d%s:" \ - "%{${fg[cyan]}%}" $pac_cnt "%{${fg[default]}%}" \ - "%{${fg[cyan]}%}" $aur_cnt "%{${fg[default]}%}" -fi - -printf '%s%s%s:%s%s%s%s ' \ - "%{${fg[magenta]}%}" $hostname "%{${fg[default]}%}" \ - "%(?.%{${fg[green]}%}.%{${fg[red]}%})" "%~" "%{${fg[default]}%}" |