summaryrefslogtreecommitdiff
path: root/zsh/custom
diff options
context:
space:
mode:
authorBrian Picciano <me@mediocregopher.com>2024-11-04 21:05:07 +0100
committerBrian Picciano <me@mediocregopher.com>2024-11-04 21:05:07 +0100
commitf6a4a0103897fcaedc2158290e63a167351c3189 (patch)
tree84c8624f6d36130cf5f6ff4ea77b2994045743ac /zsh/custom
parent63dbfbe27eb4a7417143db6416fd817855fbc3ae (diff)
Use a constant for zsh prompt hostname colorHEADmain
Diffstat (limited to 'zsh/custom')
-rw-r--r--zsh/custom/themes/mediocregopher.zsh-theme10
1 files changed, 1 insertions, 9 deletions
diff --git a/zsh/custom/themes/mediocregopher.zsh-theme b/zsh/custom/themes/mediocregopher.zsh-theme
index 529f46b..dd030e4 100644
--- a/zsh/custom/themes/mediocregopher.zsh-theme
+++ b/zsh/custom/themes/mediocregopher.zsh-theme
@@ -1,14 +1,6 @@
#!/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%} :: '
+PROMPT='%{$fg[blue]%} %~%{$reset_color%}$(git_prompt_info)$(git_prompt_status)%{$reset_color%} :: '
ZSH_THEME_GIT_PROMPT_PREFIX=" ::%{$fg[green]%} "
ZSH_THEME_GIT_PROMPT_SUFFIX=""