From 07ab3a77b44944a1ac234fbd717391f36370416e Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Tue, 17 Oct 2017 18:12:57 -0600 Subject: initial public commit --- zsh/custom/themes/mediocregopher.zsh-theme | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 zsh/custom/themes/mediocregopher.zsh-theme (limited to 'zsh/custom/themes') 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=" *" -- cgit v1.2.3