diff options
| author | Skladnayazebra <skladnayazebra@gmail.com> | 2025-11-01 08:22:34 +0100 |
|---|---|---|
| committer | Skladnayazebra <skladnayazebra@gmail.com> | 2025-11-01 08:22:34 +0100 |
| commit | a0c6e1d8d989f13bdd6bdbe20f2269048f8bb738 (patch) | |
| tree | 51938f54671fcf992614396b8c893550616dd782 /zsh/prompt.zsh | |
| parent | 33c7f094cf421122c172ae7d8158b9ff7a58f105 (diff) | |
add user@host when in SSH
Diffstat (limited to 'zsh/prompt.zsh')
| -rw-r--r-- | zsh/prompt.zsh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zsh/prompt.zsh b/zsh/prompt.zsh index e041644..66f6010 100644 --- a/zsh/prompt.zsh +++ b/zsh/prompt.zsh @@ -22,9 +22,9 @@ PS_NODE="" PS_ERR="%0(?..%K{red}(%?%)%k)"; PS_GIT='%K{blue}$vcs_info_msg_0_%k' PS_USER='%K{blue}[%n@%M] %k' +PS_SSH='%K{green} ${SSH_TTY:+[%n@%M]}%k' PS_DIR='%K{green} %1~ %k' - get_pkg_manager() { if [[ -f yarn.lock ]]; then echo " " @@ -41,5 +41,5 @@ precmd() { vcs_info PS_NODE="$(get_pkg_manager)" - PROMPT="%B$PS_ERR$PS_DIR$PS_GIT$PS_NODE %# %b" + PROMPT="%B$PS_ERR$PS_SSH$PS_DIR$PS_GIT$PS_NODE %# %b" } |
