Browse files

I wanted "prefix,c" in tmux to prompt me for a window name by default…

…, since I almost always rename the thing immediately. Having opened the file, I had to refactor. It's a compulsion. O_O
  • Loading branch information...
1 parent d0f2a12 commit 36b368daa93101261681fb86054592e2f4c14ec1 @al-the-x committed Mar 15, 2012
Showing with 11 additions and 9 deletions.
  1. +0 −3 .tmuxrc
  2. +11 −6 .tmuxrc.keys
@@ -37,9 +37,6 @@ set-window-option -g monitor-activity on
# don't rename windows automatically
set-window-option -g automatic-rename off
-# reload changes in tmux, handy
-bind-key r source-file ~/.tmuxrc
# load the key bindings
source-file ~/.tmuxrc.keys
@@ -1,15 +1,20 @@
+# reload changes to .tmuxrc* from within tmux. handy.
+bind-key C-r source-file ~/.tmuxrc
# bound to C-a by default
-bind-key C-w last-window; bind-key w last-window
+bind-key l last-window
+bind-key ; last-panel
-# to be more screen-friendly...
-bind-key C-c new-window; bind-key c new-window
+# to match the prefix key
+bind-key C-a send-prefix; unbind-key C-b
-# reload changes in tmux, handy
-bind-key r source-file ~/.tmuxrc
+# name the window by default, C-c to bypass
+bind-key c command-prompt "new-window -n %%"; bind-key C-c new-window
# make the split panes more mnemonic
unbind-key '"'; unbind-key %
bind-key | split-window -h
bind-key _ split-window -v
-bind-key '"' command-prompt "rename-window %%"
+# more like screen
+bind-key '"' command-prompt "rename-window %%"; unbind-key ','

0 comments on commit 36b368d

Please sign in to comment.