1
0
Fork 0
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:
Connor Olding 2019-05-30 01:21:28 -07:00
parent d0c2f05dba
commit 03f4ae25fc

View file

@ -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