summaryrefslogtreecommitdiff
path: root/xsh
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2016-10-22 18:15:18 +0200
committerJonas Smedegaard <dr@jones.dk>2016-10-22 18:15:18 +0200
commit4f9e5c3017f69ba01608a5b9371cb736bc61bf0c (patch)
tree5cb66b7a15e29f596d5968df0d4babb46cd75648 /xsh
parent516ec78326293048ecaa4a9ec1b6589d926ae3d3 (diff)
Simplify wrap ssh.
Diffstat (limited to 'xsh')
-rwxr-xr-xxsh11
1 files changed, 3 insertions, 8 deletions
diff --git a/xsh b/xsh
index c9a04b4..630709c 100755
--- a/xsh
+++ b/xsh
@@ -54,11 +54,6 @@ done
# FIXME: needs shell wrapper (provided by SSH but not in local use)
[ -z "$V" ] || set -- "$@"\; sleep 4
-case "$HOST" in
- '')
- termwrapper "$@"
- ;;
- *)
- termwrapper ssh $ssh_opts $HOST "$@"
- ;;
-esac
+[ -z "$HOST" ] || set -- ssh $ssh_opts $HOST "$@"
+
+termwrapper "$@"