leetle fixes

This commit is contained in:
Ville Rantanen
2016-07-23 13:17:24 +03:00
parent 359a79befb
commit 424ed8c897
2 changed files with 2 additions and 0 deletions

1
rc
View File

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

View File

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