diff options
| -rw-r--r-- | 00-prompt.zsh | 1 | ||||
| -rw-r--r-- | 03-environment.zsh | 2 | ||||
| -rw-r--r--[l---------] | prompts/charm.zsh | 22 |
3 files changed, 23 insertions, 2 deletions
diff --git a/00-prompt.zsh b/00-prompt.zsh index 610088c..f016bc8 100644 --- a/00-prompt.zsh +++ b/00-prompt.zsh @@ -15,6 +15,7 @@ function distro_logo { *Ubuntu*) echo "%{\033[01;38;2;172;61;24m%} $RESET" ;; *fc*) echo "%{\033[01;38;2;21;118;167m%} $RESET" ;; *gentoo*) echo "%{\033[01;38;2;126;126;183m%} $RESET" ;; + *charm*) echo "%{\033[01;38;2;126;126;183m%} $RESET" ;; *Linux*) case "$(lsb_release -si)" in *Void*) echo "%{\033[01;38;2;71;128;97m%}◯ $RESET" ;; diff --git a/03-environment.zsh b/03-environment.zsh index 18b77d3..79eb846 100644 --- a/03-environment.zsh +++ b/03-environment.zsh @@ -1,4 +1,4 @@ -export PATH="$HOME/.cargo/bin:$HOME/.local/bin:$PATH" +export PATH="$HOME/.cargo/bin:$HOME/.local/bin:$PATH:$HOME/node_modules/.bin" if [[ "$TERM" == "alacritty" ]] ; then export TERM=xterm-256color diff --git a/prompts/charm.zsh b/prompts/charm.zsh index f20da87..363e56b 120000..100644 --- a/prompts/charm.zsh +++ b/prompts/charm.zsh @@ -1 +1,21 @@ -strange.zsh
\ No newline at end of file +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 "$1${color1}\$${RESET} " +} + +PROMPT_END=" " +PROMPT_REND=" " + +PROMPT='$(wrap "$(simple_prompt $color1 $color2)")' +RPROMPT='$(simple_rprompt $color1 $color2)' |