diff options
author | Brian Picciano <mediocregopher@gmail.com> | 2017-10-17 18:12:57 -0600 |
---|---|---|
committer | mediocregopher <mediocregopher@gmail.com> | 2021-10-03 17:22:56 -0600 |
commit | 07ab3a77b44944a1ac234fbd717391f36370416e (patch) | |
tree | edd959740bf9256bf38e9c2e3cacda8c555f8c56 /zsh/custom/themes |
initial public commit
Diffstat (limited to 'zsh/custom/themes')
-rw-r--r-- | zsh/custom/themes/mediocregopher.zsh-theme | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/zsh/custom/themes/mediocregopher.zsh-theme b/zsh/custom/themes/mediocregopher.zsh-theme new file mode 100644 index 0000000..529f46b --- /dev/null +++ b/zsh/custom/themes/mediocregopher.zsh-theme @@ -0,0 +1,23 @@ +#!/usr/bin/env zsh + +# Unique string based on hostname +sha1=$(echo $(hostname) | sha1sum | awk '{print $1}' | grep -oP '[0-9a-f]{8}' | head -n1) +# Turn sha1 into int +asint=$(printf "%d" 0x$sha1) + +colorint=$(printf "%03d" $(expr $asint % 255)) +color=$FG[$colorint] + +PROMPT='%{$color%} %~%{$reset_color%}$(git_prompt_info)$(git_prompt_status)%{$reset_color%} :: ' + +ZSH_THEME_GIT_PROMPT_PREFIX=" ::%{$fg[green]%} " +ZSH_THEME_GIT_PROMPT_SUFFIX="" +ZSH_THEME_GIT_PROMPT_DIRTY="" +ZSH_THEME_GIT_PROMPT_CLEAN="" + +ZSH_THEME_GIT_PROMPT_ADDED=" +" +ZSH_THEME_GIT_PROMPT_MODIFIED=" ^" +ZSH_THEME_GIT_PROMPT_DELETED=" -" +ZSH_THEME_GIT_PROMPT_RENAMED=" >" +ZSH_THEME_GIT_PROMPT_UNMERGED=" @" +ZSH_THEME_GIT_PROMPT_UNTRACKED=" *" |