BUGFIX: Also remove 'ssh' from term title

Accidentally removed 'ssh' from the set of commands to strip out.
This commit is contained in:
Pandu POLUAN 2024-03-14 15:09:47 +07:00
commit f1935b7350

View file

@ -98,7 +98,7 @@ function omz_termsupport_preexec {
# cmd name only, or if this is doas/sudo or ssh, the next cmd
local _subex
zstyle -s ':omz' 'subexecutor' _subex
local CMD="${1[(wr)^(*=*|${_subex}|_|subex|mosh|rake|-*)]:gs/%/%%}"
local CMD="${1[(wr)^(*=*|${_subex}|_|subex|ssh|mosh|rake|-*)]:gs/%/%%}"
local LINE="${2:gs/%/%%}"
title "$CMD" "%100>...>${LINE}%<<"