summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Beattie <mike@ethernal.org>2019-02-03 00:56:02 +1300
committerMike Beattie <mike@ethernal.org>2019-02-03 18:26:35 +1300
commit862c948cedb368b35cb46abb5e83741ab383ad62 (patch)
tree5099c15f595f3b5f10442497063916c824914ade
parentb6305bf0ebf071f1cb5655e4e5dac5e3eaa51e52 (diff)
ZSH: Add "[ROOT]" to pre-exec window title too
Signed-off-by: Mike Beattie <mike@ethernal.org>
-rw-r--r--.zshrc2
1 files changed, 1 insertions, 1 deletions
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}";
}
}