mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-11 09:05:28 +08:00
BUGFIX: Also remove 'ssh' from term title
Accidentally removed 'ssh' from the set of commands to strip out.
This commit is contained in:
@@ -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}%<<"
|
||||
|
||||
Reference in New Issue
Block a user