diff options
author | ZachIR <zachir@librem.one> | 2025-04-25 19:24:18 -0500 |
---|---|---|
committer | ZachIR <zachir@librem.one> | 2025-04-25 19:24:18 -0500 |
commit | bb8562117c6cb324c60e79847dfd50583e73f52a (patch) | |
tree | f3c9d92cf427aa712c7fb893256b525b72c45b44 /zsh/zshrc | |
parent | e6e3c16bc3492d77063a1b1356ebb44d0e7e4ed5 (diff) | |
parent | b372316155d6ba4ee14f8fc63905d1368717b3cb (diff) |
Merge branch 'master' into car
Diffstat (limited to 'zsh/zshrc')
-rw-r--r-- | zsh/zshrc | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -44,9 +44,13 @@ bindkey "${key[End]}" end-of-line bindkey "${key[PageUp]}" history-substring-search-up bindkey "${key[PageDown]}" history-substring-search-down -MYPROMPT=$'%S%F{002}[%n@%m]\UE0B2%F{015}%s%~%S%F{002}\UE0B0%#%s\UE0B0%f ' +if (env | grep -Fq 'DISTROBOX'); then + MYPROMPT=$'%F{000}%K{004}[%n@%m]%F{015}\UE0B2%K{015}%F{000}%~%F{015}%K{004}\UE0B0%F{000}%#%F{004}%k\UE0B0%f ' +else + MYPROMPT=$'%F{015}%K{009}[%n@%m]%F{015}\UE0B2%K{015}%F{000}%~%F{015}%K{009}\UE0B0%F{015}%#%F{009}%k\UE0B0%f ' +fi function zle-line-init zle-keymap-select { - VIM_PROMPT=$'%S%F{012}[%n@%m]\UE0B2%F{015}%s%~%S%F{012}\UE0B0%#%s\UE0B0%f ' + VIM_PROMPT=$'%F{000}%K{012}[%n@%m]%F{015}\UE0B2%K{015}%F{000}%~%F{015}%K{012}\UE0B0%F{000}%#%F{012}%k\UE0B0%f ' PS1="${${KEYMAP/vicmd/$VIM_PROMPT}/main/$MYPROMPT}" zle reset-prompt } |