From 552b13948039ec348a8fbad671606b964d2e9ca3 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Fri, 15 Aug 2014 21:18:34 -0500 Subject: [PATCH] .tmux.conf: Shift+0-9 to select screens 10-19 --- .tmux.conf | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index 982420b..553bd17 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -17,6 +17,7 @@ set -g set-titles-string '[#S:#I.#P #H] #W' # status bar set -g status-utf8 on set -g status-style none +set -g status-left '' set -g status-right '#[fg=blue]#(whoami)@#h (#S:#I.#P)' setw -g window-status-style 'fg=brightblack' setw -g window-status-current-style 'bg=brightblack,bold,fg=brightwhite' @@ -30,12 +31,14 @@ set -g prefix C-a bind-key a send-prefix bind-key A command-prompt "rename-window %%" bind-key C-a last-window -bind-key C-c new-window # same as C-a c -bind-key C-d detach # same as C-a d -bind-key C-n next-window # same as C-a n -bind-key C-p previous-window # same as C-a p +bind-key C new-window +bind-key c new-window -n 'sh' # new window w/ default title +bind-key C-c new-window -n 'sh' # (same as C-a c) +bind-key C-d detach # (same as C-a d) +bind-key C-n next-window # (same as C-a n) +bind-key C-p previous-window # (same as C-a p) bind-key Escape copy-mode -unbind Space +unbind-key Space # vim style movement setw -g mode-keys vi @@ -49,8 +52,20 @@ bind-key -r C-h resize-pane -L 1 bind-key -r C-l resize-pane -R 1 # intuitive window splitting -bind | split-window -h -bind \ split-window -h -bind - split-window -v +bind-key '|' split-window -h +bind-key '\' split-window -h +bind-key '-' split-window -v + +# Shift+0-9 to select screens 10-19 +bind-key ')' select-window -t :10 +bind-key '!' select-window -t :11 +bind-key '@' select-window -t :12 +bind-key '#' select-window -t :13 +bind-key '$' select-window -t :14 +bind-key '%' select-window -t :15 +bind-key '^' select-window -t :16 +bind-key '&' select-window -t :17 +bind-key '*' select-window -t :18 +bind-key '(' select-window -t :19 bind R source-file ~/.tmux.conf -- 2.45.2