aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/tmux_start.sh38
-rw-r--r--tmux.config8
-rwxr-xr-xwindow_renum.sh (renamed from scripts/tmux_window_renum.sh)2
3 files changed, 7 insertions, 41 deletions
diff --git a/scripts/tmux_start.sh b/scripts/tmux_start.sh
deleted file mode 100755
index 924cf78..0000000
--- a/scripts/tmux_start.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/bash
-#from http://www.huyng.com/posts/productivity-boost-with-tmux-iterm2-workspaces/
-export PATH=$PATH:/usr/local/bin
-
-# abort if we're already inside a TMUX session
-[ "$TMUX" == "" ] || exit 0
-
-# startup a "default" session if none currently exists
-#tmux has-session -t _default || tmux new-session -s _default -d
-
-# present menu for user to choose which workspace to open
-PS3="Please choose your session: "
-options=("tmux" "dashboard" $(tmux list-sessions -F "#S"))
-echo "Available sessions"
-echo "------------------"
-echo " "
-select opt in "${options[@]}"
-do
- case $opt in
- #"NEW SESSION")
- #read -p "Enter new session name: " SESSION_NAME
- #tmux new -s "$SESSION_NAME"
- #break
- #;;
- "dashboard")
- tmuxomatic ~/.tmux/tmuxomatic/dashboard
- break
- ;;
- "tmux")
- tmux
- break
- ;;
- *)
- tmux attach-session -t "$opt"
- break
- ;;
- esac
-done
diff --git a/tmux.config b/tmux.config
index bbca376..1cc9483 100644
--- a/tmux.config
+++ b/tmux.config
@@ -89,11 +89,15 @@ set-option -g status-right-length 90
set-option -g status-left "#(~/.tmux/powerline.sh left)"
set-option -g status-right "#(~/.tmux/powerline.sh right)"
-# Make the escape faster
+# Make the escape faster, faster command sequences
set -s escape-time 0
# Deal with screens having different
set-window-option -g aggressive-resize
# Bind the last window command
-bind-key l last-window
+bind-key C-b last-window
+
+# Use base 1 numbering, 0 base is a big stretch
+set -g base-index 1
+setw -g pane-base-index 1
diff --git a/scripts/tmux_window_renum.sh b/window_renum.sh
index ed33584..19e5825 100755
--- a/scripts/tmux_window_renum.sh
+++ b/window_renum.sh
@@ -1,6 +1,6 @@
for session in $(tmux ls | awk -F: '{print $1}') ; do
active_window=$(tmux lsw -t ${session} | awk -F: '/\(active\)$/ {print $1}')
- inum=0
+ inum=1
for window in $(tmux lsw -t ${session} | awk -F: '{print $1}') ;do
if [ ${window} -gt ${inum} ] ;then
echo "${session}:${window} -> ${session}:${inum}"