leetle fixes
This commit is contained in:
1
rc
1
rc
@@ -3,6 +3,7 @@
|
||||
TOOLSPATH=$( readlink -f $( dirname "$BASH_SOURCE" ) )
|
||||
|
||||
PATH=$PATH:"$TOOLSPATH"/bin
|
||||
[[ "$1" = "-f" ]] && PATH="$TOOLSPATH"/bin:$PATH
|
||||
|
||||
# remove duplicate path
|
||||
PATH=$( echo $PATH | awk -F: '{for (i=1;i<=NF;i++) { if ( !x[$i]++ ) printf("%s:",$i); }}' | sed 's,:\+$,,g' )
|
||||
|
||||
@@ -23,6 +23,7 @@ tmux new-session -d -s ssh$USER$$ "ssh $TMUXSSH_OPTIONS $1"
|
||||
tmux set-window-option -t:0 synchronize-panes on
|
||||
tmux bind-key m setw synchronize-panes
|
||||
tmux rename-window 'SSH'
|
||||
tmux set-option prefix2 C-n
|
||||
for (( i=2; i<=$#; i++ ))
|
||||
do tmux split-window -h "ssh $TMUXSSH_OPTIONS ${!i}"
|
||||
tmux select-layout main-vertical
|
||||
|
||||
Reference in New Issue
Block a user