summaryrefslogtreecommitdiff
path: root/conf.d
diff options
context:
space:
mode:
Diffstat (limited to 'conf.d')
-rw-r--r--conf.d/60-prompt.zsh5
1 files changed, 5 insertions, 0 deletions
diff --git a/conf.d/60-prompt.zsh b/conf.d/60-prompt.zsh
index c21aafc..1ae2531 100644
--- a/conf.d/60-prompt.zsh
+++ b/conf.d/60-prompt.zsh
@@ -64,6 +64,11 @@ left_prompt() {
echo -n "@$(hostname | tr -d '\n') "
fi
+ if test -n "$DOCKER_HOST"; then
+ zcol "$fg[cyan]"
+ echo -n "$(basename "$DOCKER_HOST") "
+ fi
+
zcol "$fg[green]"
{ pwd; echo -n " " } | tr -d '\n' | sed -e "s:^$HOME:~:"