From 862c948cedb368b35cb46abb5e83741ab383ad62 Mon Sep 17 00:00:00 2001 From: Mike Beattie Date: Sun, 3 Feb 2019 00:56:02 +1300 Subject: ZSH: Add "[ROOT]" to pre-exec window title too Signed-off-by: Mike Beattie --- .zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 78cffdf..b0ec719 100644 --- a/.zshrc +++ b/.zshrc @@ -58,7 +58,7 @@ function () { # Create the prexec hook function to set the title to the current command preexec () { - [[ -n "${pr_wt_in}" ]] && print -nPR "${pr_wt_in}%l) %n@%m: %40>...>${(V)1//\%/%%}%<<${pr_wt_out}"; + [[ -n "${pr_wt_in}" ]] && print -nPR "${pr_wt_in}%(!.[ROOT] | .)%l) %n@%m: %40>...>${(V)1//\%/%%}%<<${pr_wt_out}"; } } -- cgit v1.2.3