From 4fb53e4645bb1d6103b90f4c91b7826867b30d9c Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 10 Mar 2002 08:24:55 +0000 Subject: Optimize xsh terminal handling and local/remote options, and use the script - correctly - with xmc and xpine. --- xmc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'xmc') 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 $@ -- cgit v1.2.3