diff options
author | Mike Beattie <mike@ethernal.org> | 2019-02-03 00:56:02 +1300 |
---|---|---|
committer | Mike Beattie <mike@ethernal.org> | 2019-02-03 18:26:35 +1300 |
commit | 862c948cedb368b35cb46abb5e83741ab383ad62 (patch) | |
tree | 5099c15f595f3b5f10442497063916c824914ade | |
parent | b6305bf0ebf071f1cb5655e4e5dac5e3eaa51e52 (diff) |
ZSH: Add "[ROOT]" to pre-exec window title too
Signed-off-by: Mike Beattie <mike@ethernal.org>
-rw-r--r-- | .zshrc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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}"; } } |