summaryrefslogtreecommitdiffstats
path: root/zshrc
diff options
context:
space:
mode:
authorStefan Ritter <xeno@thehappy.de>2009-05-07 19:57:52 +0200
committerStefan Ritter <xeno@thehappy.de>2009-05-07 19:57:52 +0200
commit1cab3fbf30fe18fbb1e01b26fad03f8e4622dc3c (patch)
tree16cc97c1a22a496fb5dcf95efeed3164ae649ef8 /zshrc
parent1ac51fd1e5a0c3bd89c1cfda0cb3f26694f9f87a (diff)
Added function to zshrc for easily staring vms
Diffstat (limited to 'zshrc')
-rw-r--r--zshrc31
1 files changed, 31 insertions, 0 deletions
diff --git a/zshrc b/zshrc
index c226ddc..8520458 100644
--- a/zshrc
+++ b/zshrc
@@ -92,3 +92,34 @@ ausrede() {
nc towel.blinkenlights.nl 666
fi
}
+
+vm() {
+ SLEEP=1
+ if [ "$1" = "winxp" ]; then
+ VBoxManage startvm "Windows XP Pro SP1" -type vrdp
+ sleep $SLEEP
+ rdesktop-vrdp -k de localhost
+ elif [ "$1" = "freebsd" ]; then
+ VBoxManage startvm "FreeBSD 7.1" -type vrdp
+ sleep $SLEEP
+ rdesktop-vrdp -k de localhost
+ elif [ "$1" = "win2003" ]; then
+ VBoxManage startvm "Windows Server 2003 Enterprise" -type vrdp
+ sleep $SLEEP
+ rdesktop-vrdp -k de localhost
+ elif [ "$1" = "pdc" ]; then
+ VBoxManage startvm "Samba PDC mit LDAP" -type vrdp
+ sleep $SLEEP
+ rdesktop-vrdp -k de localhost
+ elif [ "$1" = "sid" ]; then
+ VBoxManage startvm "Debian Sid" -type vrdp
+ sleep $SLEEP
+ rdesktop-vrdp -k de localhost
+ elif [ "$1" = "" ]; then
+ echo "winxp"
+ echo "win2003"
+ echo "freebsd"
+ echo "sid"
+ echo "pdc"
+ fi
+}