mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
changing some single quotes to double quotes
changing some single quotes to double quotes, because with single quotes the variable does not get expanded and the terminal title ends up being '$LINE' instead of the actual command run. With double quotes the variable expansion takes place as desired.
This commit is contained in:
parent
3d5b3430fd
commit
d34a6d306a
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ function omz_termsupport_preexec {
|
|||
local CMD=${1[(wr)^(*=*|sudo|ssh|rake|-*)]:gs/%/%%}
|
||||
local LINE="${2:gs/%/%%}"
|
||||
|
||||
title '$CMD' '%100>...>$LINE%<<'
|
||||
title "$CMD" "%100>...>$LINE%<<"
|
||||
}
|
||||
|
||||
precmd_functions+=(omz_termsupport_precmd)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue