diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2020-06-21 10:44:50 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2020-06-21 10:46:21 -0700 |
commit | 134984230ac68c0bf5595ffbf4c2b1198b975803 (patch) | |
tree | 7cd2ec475952c69babfa27eaf0a85e743f0f1493 /.bashrc | |
parent | 37cc1fdbc9789e129afc5f3d523240446625463b (diff) | |
download | dotfiles-134984230ac68c0bf5595ffbf4c2b1198b975803.tar.gz |
new ssh-and-tmux and ssh-and-tmux-term and some connecting up
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 20 |
1 files changed, 0 insertions, 20 deletions
@@ -203,26 +203,6 @@ install-as-auto () { fi } -# when mosh isn't installed on the server, but tmux is, use this to -# get a fairly persistent set of remote shell sessions. I used to use -# autossh here, but that means surprise dialogs asking to authorise -# use of an SSH key; instead, just hit <Up><Ret> to restart a window's -# connection when it's convenient -# -# (The reason that I get prompted is because I have a short -# ServerAliveInterval and low ServerAliveCountMax, but that's -# desirable, because unresponsive SSH sessions are a massive pain) -smux () { - case "$2" in - "") - ssh -t "$1" "tmux new-session -A -s default" - ;; - *) - ssh -t "$1" "tmux new-session -A -s $2" - ;; - esac -} - # try to get an upstream remote upstream-remote-from-copyright () { toplevel="$(git rev-parse --show-toplevel)" |