From c8ffc3b7469e0e980ab931fc2097e9f4ae2797f7 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Fri, 25 Aug 2017 19:08:07 +0100 Subject: [PATCH] Add another attempt at always using GNU Screen on remote hosts. --- .bashrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.bashrc b/.bashrc index 26d6dc1..b1fe817 100755 --- a/.bashrc +++ b/.bashrc @@ -124,6 +124,7 @@ if ! alias ll >/dev/null 2>&1; then function ll() { ls -l ${@}; } && export -f l [[ -x $(which gsort 2>/dev/null) ]] && function sort() { gsort ${@}; } && export -f sort [[ -x /bin/ps && -x $(which pstree 2>/dev/null) ]] && function ps() { if [[ ${1} =~ 'f' ]]; then pstree; else /bin/ps ${@}; fi } [[ -x $(which tree 2>/dev/null) ]] && alias tree="tree -AQh --du" +function ssh() { $(which ssh) -axt ${@} "screen -xRRAUO || bash"; } #-------------------------------------------------------------------------------- #--------------------------------------------------------------------------------