dotfiles

*nix config files
git clone git://git.pyratebeard.net/dotfiles.git
Log | Files | Refs | README

commit 056f2d6ddfdab3b9345bd8dd7b65430defa8f0e2
parent 352785a5a7ce9b7973a5ab0f0cfa6a8104c6d366
Author: pyratebeard <root@pyratebeard.net>
Date:   Fri, 24 Nov 2023 21:34:05 +0000

different prompt if in vim or over ssh

Diffstat:
Mzsh/.zsh/prompt.zsh | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/zsh/.zsh/prompt.zsh b/zsh/.zsh/prompt.zsh @@ -99,8 +99,11 @@ PROMPT='${USER_LEVEL}[${COLOR_NORMAL}%~${USER_LEVEL}]$(GIT_PROMPT)── - %f' tiny) #PROMPT='%F{3} %%${COLOR_NORMAL} ' # change prompt colour if started from vim -if [[ -v VIMRUNTIME || -v SSH_TTY ]] ; then - PROMPT='%F{9} ──── ─${COLOR_NORMAL} ' +if [[ -v VIMRUNTIME ]] ; then + PROMPT='%F{13} ──── ─${COLOR_NORMAL} ' +# change prompt to show hostname if over ssh +elif [[ -v SSH_TTY ]] ; then + PROMPT='%F{13} ${HOSTNAME}%F{3}_ ${COLOR_NORMAL}' else PROMPT='%F{11} ──── ─${COLOR_NORMAL} ' fi