summaryrefslogtreecommitdiff
path: root/xmc
diff options
context:
space:
mode:
Diffstat (limited to 'xmc')
-rwxr-xr-xxmc8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmc b/xmc
index 12772f2..1fa1e54 100755
--- a/xmc
+++ b/xmc
@@ -1,9 +1,9 @@
#!/bin/bash
if [ $# -eq 0 ]; then
- host="localhost"
+ xsh localhost mc
+elif [ $# -eq 1 -a "$1" = "su" ]; then
+ xsh localhost mc su
else
- host="$1"
+ xsh $@ mc
fi
-shift
-xsh $host mc $@