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