add ssht function

will attach to existing tmux session, create new if one does not exist or just start bash if there is no tmux available.
This commit is contained in:
2016-07-10 14:24:41 +02:00
parent 11a9e9bc2d
commit 94f0af366a

View File

@@ -9,6 +9,11 @@ udot() {
cd $cwd
}
# will attach to existing tmux session, create new if one does not exist or just start bash if there is no tmux available.
function ssht(){
ssh $* -t 'tmux a || tmux || /bin/bash'
}
#Docker: bash into running Docker container
dockersh() {
docker cp ~/.dotfiles/docker.bashrc $1:/.docker.bashrc