mirror of
https://github.com/notwa/rc
synced 2024-11-05 06:49:03 -08:00
patch small security concern
This commit is contained in:
parent
d0c2f05dba
commit
03f4ae25fc
1 changed files with 1 additions and 1 deletions
2
sh/fasd
2
sh/fasd
|
@ -152,7 +152,7 @@ EOS
|
||||||
zsh-hook) cat <<EOS
|
zsh-hook) cat <<EOS
|
||||||
# add zsh hook
|
# add zsh hook
|
||||||
_fasd_preexec() {
|
_fasd_preexec() {
|
||||||
{ fasd --proc \$(fasd --sanitize "\$2") } >> "$_FASD_SINK" 2>&1
|
{ fasd --proc \$(fasd --sanitize "\${2:q}") } >> "$_FASD_SINK" 2>&1
|
||||||
}
|
}
|
||||||
autoload -Uz add-zsh-hook
|
autoload -Uz add-zsh-hook
|
||||||
add-zsh-hook preexec _fasd_preexec
|
add-zsh-hook preexec _fasd_preexec
|
||||||
|
|
Loading…
Reference in a new issue