qemush : variable ls -> alias ls

This commit is contained in:
Ahurac 2024-03-24 23:23:09 +01:00
parent f2f038d24b
commit ad284ca57b

View file

@ -8,7 +8,8 @@
PATH="${HOME}/launchers:${HOME}/bin:${PATH}"
# Aliases
ls='ls --color=auto'
alias ls='ls --color=auto'
shopt -s expand_aliases
# Set a restrictive umask to make sure qemu user files are private
umask 027
@ -76,16 +77,14 @@ public_attach() {
public_running() {
cd || return
echo "Running machines:"
set -- $ls -t sockets/monitors "$@"
exec "$@"
exec ls -t sockets/monitors
}
# List available virtual machines entrypoints
public_ls() {
cd || return
echo "Available machines:"
set -- $ls launchers "$@"
exec "$@"
exec ls launchers
}
# Create a copy-on-write disk for a virtual machine
@ -107,8 +106,7 @@ public_diskrm() {
public_diskls() {
cd || return
echo "Available disks:"
set -- $ls disks "$@"
exec "$@"
exec ls disks
}
# Edit a virtual machine entrypoint with a text editor