qemush : variable ls -> alias ls
This commit is contained in:
parent
f2f038d24b
commit
ad284ca57b
1 changed files with 5 additions and 7 deletions
12
bin/qemush
12
bin/qemush
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue