kein neues tmux fenster mehr automatisch bei ssh
This commit is contained in:
parent
914c8a78a6
commit
0183a5f581
34
.bashrc
34
.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 ]
|
||||
#SSHEXEC=$(which ssh)
|
||||
#ssh() {
|
||||
# if [ -n "$TMUX" ]
|
||||
# then
|
||||
# title="$2"
|
||||
# shift 2
|
||||
#fi
|
||||
#if [ "$1" = "stay" ]
|
||||
#then
|
||||
# "$SSHEXEC $@"
|
||||
# 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
|
||||
tmux new-window -n "$title" "$SSHEXEC $( echo $@ | sed 's/stay//')"
|
||||
# $SSHEXEC $@
|
||||
# fi
|
||||
else
|
||||
$SSHEXEC $@
|
||||
fi
|
||||
}
|
||||
#}
|
||||
|
||||
# colorful manpages
|
||||
export LESS_TERMCAP_mb=$'\e[1;32m'
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user