X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/1390d0285583db13842b2fc8d96c3b8b4af02dfd..452d22eba193e9914c6f3810d8d926cd041c741a:/bin/dmenu_runsmart?ds=sidebyside diff --git a/bin/dmenu_runsmart b/bin/dmenu_runsmart index 71cb8ad..c239db1 100755 --- a/bin/dmenu_runsmart +++ b/bin/dmenu_runsmart @@ -1,7 +1,8 @@ #!/bin/sh cmd=$(dmenu_path | ~/bin/dmenu "$@") if [ -n "$cmd" ]; then - # zsh SH_WORD_SPLIT is unset by default, `=' flag is required to expand + # NOTE: only tested with zsh and sh, and has issues with expansion; zsh + # SH_WORD_SPLIT is unset by default, `=' flag is required to expand it echo "alias sudo='sudo -Ak' cmd='$(echo "$cmd" | sed "s/'/'\\\\''/g")'" ' if [ -n "$ZSH_VERSION" ]; then