summaryrefslogtreecommitdiff
path: root/conf.d
diff options
context:
space:
mode:
Diffstat (limited to 'conf.d')
-rw-r--r--conf.d/60-prompt.zsh3
1 files changed, 2 insertions, 1 deletions
diff --git a/conf.d/60-prompt.zsh b/conf.d/60-prompt.zsh
index d1d7fae..c21aafc 100644
--- a/conf.d/60-prompt.zsh
+++ b/conf.d/60-prompt.zsh
@@ -58,7 +58,8 @@ left_prompt() {
*) echo -n $USER
esac
- if test -n "$SSH_TTY"; then
+ if test -n "$SSH_TTY" \
+ || [ -f /.dockerenv ]; then
zcol "$fg[cyan]"
echo -n "@$(hostname | tr -d '\n') "
fi