summaryrefslogtreecommitdiff
path: root/zsh/.zsh/.zshrc
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2018-03-15 11:02:07 +0000
committerUrbain Vaes <urbain@vaes.uk>2018-03-15 11:02:07 +0000
commit137cf65e27da3b06b2e5903302126bf5b10d9943 (patch)
tree89101ce302edb00c8917ea17ed44a2bf8fb65e3b /zsh/.zsh/.zshrc
parentd161d11682989d18f5ec994428028afae4a122d7 (diff)
Show hostname in prompt in ssh
Diffstat (limited to 'zsh/.zsh/.zshrc')
-rw-r--r--zsh/.zsh/.zshrc4
1 files changed, 4 insertions, 0 deletions
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