From bde39b0d7298fbda4eacc4cf522c005b616761e3 Mon Sep 17 00:00:00 2001 From: Ahurac Date: Tue, 23 Jan 2024 01:04:24 +0100 Subject: [PATCH] =?UTF-8?q?qemush=20:=20suppression=20des=20aliases,=20uti?= =?UTF-8?q?lisation=20d'une=20variable=20=C3=A0=20la=20place,=20support=20?= =?UTF-8?q?des=20options=20pour=20les=20commandes=20ls?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/qemush | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/bin/qemush b/bin/qemush index 8ba8b5e..4a41d7b 100755 --- a/bin/qemush +++ b/bin/qemush @@ -21,9 +21,7 @@ EDITOR="${EDITOR:-nvim}" export QEMUSH_NAME # Aliases -alias ls='ls --color=auto' -alias exec='exec ' -shopt -s expand_aliases +ls='ls --color=auto' # Set a restrictive umask to make sure qemu user files are private umask 027 @@ -86,14 +84,16 @@ public_watch() { public_active() { cd || return echo "Running machines:" - exec ls -t sockets + set -- $ls -t sockets "$@" + exec "$@" } # List available virtual machines entrypoints public_ls() { cd || return echo "Available machines:" - exec ls launchers + set -- $ls launchers "$@" + exec "$@" } # Create a copy-on-write disk for a virtual machine @@ -114,7 +114,8 @@ public_diskrm() { public_diskls() { cd || return echo "Available disks:" - exec ls disks + set -- $ls disks "$@" + exec "$@" } # Edit a virtual machine entrypoint with a text editor