commit 382dc075c774c9d730b69281262abc4281490b41
parent dd7237dec268cc50aa16433d00a2da8d269b738c
Author: Anders Damsgaard <andersd@riseup.net>
Date: Tue, 11 Jul 2017 12:43:51 +0200
connect to idkfa tmux session
Diffstat:
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/bin/idkfa-ssh b/bin/idkfa-ssh
@@ -1,6 +1,6 @@
#!/bin/bash
set -e
-remotecommand='tmux attach -dt utility'
+remotecommand='tmux attach'
host=idkfa.ucsd.edu
user=ad
if [ "$1" = "-s" ]; then
diff --git a/bin/tmux-utility.sh b/bin/tmux-utility.sh
@@ -41,6 +41,11 @@ then
tmux split-window -p 33 -h -t $SESSION
tmux send-keys -t $SESSION \
'cd ~/code/SeaIce-experiments && ~/bin/seaice-status.sh' C-m
+
+ tmux new-window -t $SESSION -n idkfa
+ tmux select-pane -t $SESSION:4.1
+ tmux send-keys -t $SESSION \
+ 'sshfs ad@idkfa.ucsd.edu:/home/ad ~/idkfa && cd ~/bin/idkfa-ssh' C-m
fi
#tmux select-layout tiled