update
parent
52257e5a53
commit
83b41d2888
|
@ -3,16 +3,26 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
virtualboxes() {
|
virtualboxes() {
|
||||||
|
case $LANG in
|
||||||
|
pl*)
|
||||||
|
VBOXES="Maszyny wirtualne"
|
||||||
|
REFRESH="Odśwież listę"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
VBOXES="Virtual Machines"
|
||||||
|
REFRESH="Refresh list"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
if [[ -x "$(command -v VBoxManage)" ]]; then
|
if [[ -x "$(command -v VBoxManage)" ]]; then
|
||||||
{
|
{
|
||||||
printf "%b\n" "^sep(Maszyny wirtualne)"
|
printf "%b\n" "^sep($VBOXES)"
|
||||||
printf "%b\n" "VirtualBox GUI,virtualbox"
|
printf "%b\n" "VirtualBox GUI,virtualbox"
|
||||||
}> $HOME/.config/mabox/vboxes.csv
|
}> $HOME/.config/mabox/vboxes.csv
|
||||||
VBoxManage list -s vms | cut -f 2 -d "\"" | sort -f | while read vm
|
VBoxManage list -s vms | cut -f 2 -d "\"" | sort -f | while read vm
|
||||||
do
|
do
|
||||||
printf "%s\n" "$vm,vboxmanage startvm ${vm}" >>$HOME/.config/mabox/vboxes.csv
|
printf "%s\n" "$vm,vboxmanage startvm ${vm}" >>$HOME/.config/mabox/vboxes.csv
|
||||||
done
|
done
|
||||||
printf "%s\n%s\n" "^sep()" "Odśwież listę,/usr/bin/mabox-obstart virtualboxes" >>$HOME/.config/mabox/vboxes.csv
|
printf "%s\n%s\n" "^sep()" "$REFRESH,/usr/bin/mabox-obstart virtualboxes" >>$HOME/.config/mabox/vboxes.csv
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
startopenbox() {
|
startopenbox() {
|
||||||
|
|
Loading…
Reference in New Issue