kein neues tmux fenster mehr automatisch bei ssh

This commit is contained in:
Julian Scharrenbach 2018-07-12 07:51:36 +02:00
parent 914c8a78a6
commit 0183a5f581

40
.bashrc
View File

@ -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'