From 5802bfe2b008b7488d2e8d8036d5c9fe90797b32 Mon Sep 17 00:00:00 2001 From: Joshua Rahm Date: Mon, 15 Nov 2021 11:50:06 -0700 Subject: Add charm and strange prompts --- prompts/strange.zsh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 prompts/strange.zsh (limited to 'prompts/strange.zsh') diff --git a/prompts/strange.zsh b/prompts/strange.zsh new file mode 100644 index 0000000..ee5a635 --- /dev/null +++ b/prompts/strange.zsh @@ -0,0 +1,21 @@ +PURPLE="%{\x1b[01;35m%}" +RED="%{\x1b[01;31m%}" +RESET="%{\x1b[0m%}" + +if [[ "$(hostname)" == *strange* ]] ; then + color1=$RED + color2=$PURPLE +else + color1=$PURPLE + color2=$RED +fi + +function wrap { + echo "${color1}[$1${color1}]\$${RESET} " +} + +PROMPT_END=" " +PROMPT_REND=" " + +PROMPT='$(wrap "$(simple_prompt $color1 $color2)")' +RPROMPT='$(simple_rprompt $color1 $color2)' -- cgit