summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xxmc8
1 files changed, 7 insertions, 1 deletions
diff --git a/xmc b/xmc
index c175f86..12772f2 100755
--- a/xmc
+++ b/xmc
@@ -1,3 +1,9 @@
#!/bin/bash
-xsh mc $@
+if [ $# -eq 0 ]; then
+ host="localhost"
+else
+ host="$1"
+fi
+shift
+xsh $host mc $@