#!/bin/sh # rlssh, readline-wrapped fast ssh # written by Sam Watkins, 2009 # this program is public domain : ${RLSSH_SHELL:=/bin/bash -i} host="$1" if [ ! -n "$host" ]; then echo >&2 "usage: $0 host [options]" exit 1 fi complete="$HOME/.rlssh_completion_${1}" if [ ! -s "$complete" ]; then touch "$complete" echo >&2 "warning: completion file $complete is empty. run: rlssh-complete $host" fi exec rlwrap -R -f "$complete" ${RLSSH_SSH:-fsh} "$@" $RLSSH_SHELL