From 137cf65e27da3b06b2e5903302126bf5b10d9943 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Thu, 15 Mar 2018 11:02:07 +0000 Subject: Show hostname in prompt in ssh --- zsh/.zsh/.zshrc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'zsh/.zsh') diff --git a/zsh/.zsh/.zshrc b/zsh/.zsh/.zshrc index 07009b8..0728e57 100644 --- a/zsh/.zsh/.zshrc +++ b/zsh/.zsh/.zshrc @@ -37,7 +37,11 @@ fi # }}} ## Overwrite default options {{{ +if [[ -n $SSH_CLIENT ]]; then +PROMPT='%F{red}[%M]%f %0~ $ ' +else PROMPT='%0~ $ ' +fi # Options unsetopt histverify -- cgit v1.2.3