summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zsh/prompt.zsh4
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"
}