From d1d579fcd209edc1a6ef9205bb36c3550dd80a62 Mon Sep 17 00:00:00 2001 From: Ahurac Date: Sun, 24 Mar 2024 22:51:42 +0100 Subject: [PATCH] =?UTF-8?q?qemush=20:=20n'initialiser=20EDITOR=20qu'=C3=A0?= =?UTF-8?q?=20l'endroit=20o=C3=B9=20on=20en=20a=20besoin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/qemush | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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"