summaryrefslogtreecommitdiff
path: root/zsh/custom
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2017-10-17 18:12:57 -0600
committermediocregopher <mediocregopher@gmail.com>2021-10-03 17:22:56 -0600
commit07ab3a77b44944a1ac234fbd717391f36370416e (patch)
treeedd959740bf9256bf38e9c2e3cacda8c555f8c56 /zsh/custom
initial public commit
Diffstat (limited to 'zsh/custom')
-rw-r--r--zsh/custom/themes/mediocregopher.zsh-theme23
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=" *"