From 85e31307ec22af6f1f91cce61848b8b97f044106 Mon Sep 17 00:00:00 2001 From: Hippolyte Chauvin Date: Wed, 29 Nov 2023 14:33:20 +0100 Subject: [PATCH] =?UTF-8?q?qemush=20:=20fonction=20add=20->=20edit,=20ouve?= =?UTF-8?q?rture=20d'un=20editor=20=C3=A0=20la=20place?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/qemush | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/qemush b/bin/qemush index f832b97..612dab6 100755 --- a/bin/qemush +++ b/bin/qemush @@ -12,6 +12,8 @@ exec_as() { } exec_as qemu "$@" || exit + +bin=bin PATH="./bin:${PATH}" perror() { @@ -80,8 +82,8 @@ public_diskls() { ls --color=auto images } -public_add() { - ln -vs "$2" "bin/${1}" +public_edit() { + "$EDITOR" "${bin}/${1}" } public_rm() {