From 0183a5f581fa3bbc461253fa43402a41514e9cfd Mon Sep 17 00:00:00 2001 From: Julian Scharrenbach Date: Thu, 12 Jul 2018 07:51:36 +0200 Subject: [PATCH] kein neues tmux fenster mehr automatisch bei ssh --- .bashrc | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/.bashrc b/.bashrc index 1c69890..5a606a7 100644 --- a/.bashrc +++ b/.bashrc @@ -107,26 +107,26 @@ export elements="$HOME/elements" export develop="$HOME/elements/develop" # ssh using a new window when we are in TMUX -SSHEXEC=$(which ssh) -ssh() { - if [ -n "$TMUX" ] - then - title="$*" - #if [ "$1" = -t ] - #then - # title="$2" - # shift 2 - #fi - #if [ "$1" = "stay" ] - #then - # "$SSHEXEC $@" - #else - tmux new-window -n "$title" "$SSHEXEC $( echo $@ | sed 's/stay//')" - #fi - else - $SSHEXEC $@ - fi -} +#SSHEXEC=$(which ssh) +#ssh() { +# if [ -n "$TMUX" ] +# then +# title="$*" +# #if [ "$1" = -t ] +# #then +# # title="$2" +# # shift 2 +# #fi +# #if [ "$1" = "stay" ] +# #then +# # "$SSHEXEC $@" +# #else +# tmux new-window -n "$title" "$SSHEXEC $( echo $@ | sed 's/stay//')" +# #fi +# else +# $SSHEXEC $@ +# fi +#} # colorful manpages export LESS_TERMCAP_mb=$'\e[1;32m'