mirror of
https://github.com/getcompanion-ai/computer-guest.git
synced 2026-04-15 07:04:43 +00:00
chore: zsh prompt alignment
This commit is contained in:
parent
32ae1e1b26
commit
5854148630
1 changed files with 2 additions and 15 deletions
|
|
@ -61,18 +61,5 @@ if [ -r /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]; then
|
||||||
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -r /opt/zsh/pure/pure.zsh ] && [ -r /opt/zsh/pure/async.zsh ]; then
|
# Keep the prompt simple so SSH/browser terminals do not render raw control sequences.
|
||||||
fpath=(/opt/zsh/pure $fpath)
|
|
||||||
autoload -Uz promptinit
|
|
||||||
promptinit
|
|
||||||
if prompt pure >/dev/null 2>&1; then
|
|
||||||
prompt_pure_context() { :; }
|
|
||||||
zstyle ':prompt:pure:path' color blue
|
|
||||||
pure_prompt="$PROMPT"
|
|
||||||
PROMPT='%F{green}$(computer_prompt_name)%f '"$pure_prompt"
|
|
||||||
else
|
|
||||||
PROMPT='%F{green}$(computer_prompt_name)%f %F{blue}%~%f %# '
|
PROMPT='%F{green}$(computer_prompt_name)%f %F{blue}%~%f %# '
|
||||||
fi
|
|
||||||
else
|
|
||||||
PROMPT='%F{green}$(computer_prompt_name)%f %F{blue}%~%f %# '
|
|
||||||
fi
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue