diff --git a/bin/qemush b/bin/qemush index 67a6584..3436b26 100755 --- a/bin/qemush +++ b/bin/qemush @@ -6,10 +6,6 @@ # Environment PATH="${HOME}/launchers:${HOME}/bin:${PATH}" -# I don't even know why shellcheck gives me this warning -# shellcheck disable=2209 -[ -z "$EDITOR" ] && EDITOR=vi -export QEMUSH_NAME # Aliases ls='ls --color=auto' @@ -119,6 +115,9 @@ public_diskls() { public_edit() { cd || return local file="launchers/${1}" + # I don't even know why shellcheck gives me this warning + # shellcheck disable=2209 + [ -z "$EDITOR" ] && EDITOR=vi "$EDITOR" "$file" [ -f "$file" ] && exec chmod u+x "$file"