mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Reset zsh options in termsupports preexec function to enable extended_glob.
Per discussion on commit52df85440e, this mostly resolves the concerns raised in commitd4ea399b04
This commit is contained in:
parent
2e9492969b
commit
c9c233f3e4
1 changed files with 2 additions and 0 deletions
|
|
@ -24,6 +24,8 @@ function precmd {
|
|||
#Appears at the beginning of (and during) of command execution
|
||||
function preexec {
|
||||
if [ "$DISABLE_AUTO_TITLE" != "true" ]; then
|
||||
emulate -L zsh
|
||||
setopt extended_glob
|
||||
local CMD=${1[(wr)^(*=*|sudo|ssh|-*)]} #cmd name only, or if this is sudo or ssh, the next cmd
|
||||
title "$CMD" "%100>...>$2%<<"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue