From 21643ed7f86b2a448c09c214b7470f48f63674a3 Mon Sep 17 00:00:00 2001 From: Hippolyte Chauvin Date: Wed, 29 Nov 2023 14:42:47 +0100 Subject: [PATCH] qemush : alias pour ls --- bin/qemush | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/qemush b/bin/qemush index c3c3be8..cd360c1 100755 --- a/bin/qemush +++ b/bin/qemush @@ -8,8 +8,12 @@ fi bin=bin images=images + PATH="./${bin}:${PATH}" +alias ls='ls --color=auto' +shopt -s expand_aliases + perror() { >&2 printf '\033[1;31mERROR:\033[0m \033[1m%s\033[0m\n' "$*" } @@ -56,7 +60,7 @@ public_active() { public_ls() { echo "Available machines:" - ls --color=auto "$bin" + ls "$bin" } diskpath() { @@ -73,7 +77,7 @@ public_diskrm() { public_diskls() { echo "Available disks:" - ls --color=auto "$images" + ls "$images" } public_edit() {