From c80418f9349599029dd61cb1c1efa98f98ab4546 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 4 May 2018 07:31:41 +0200 Subject: tmux.conf --- tmux.conf | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tmux.conf b/tmux.conf index 99bb6e7..f8fb2ad 100644 --- a/tmux.conf +++ b/tmux.conf @@ -3,17 +3,19 @@ set -g base-index 1 set -g status-bg '#400040' set -g status-fg '#ffffff' -set -g status-left '#h * #(whoami) | #[fg=#ffc000]%H:%M %a#[default] |' +set -g status-left '#(whoami)@#h | #[fg=#ffc000]%H:%M %a#[default] |' set -g status-left-length 40 set -g status-right '' set -g window-status-current-bg '#8000ff' +set -g allow-rename on + #setw -g on-destroy 'run-shell "let i=1; for x in \$(tmux list-windows -F \"#{window_index}:#{window_active}\"); do w=\$(echo \$x | cut -d: -f 1); a=\$(echo \$x | cut -d: -f 2); if [ \$i -ne \$w ]; then if [ \$a -eq 1 ]; then active=; else active=-d; fi; tmux move-window \$active -s :\$w -t :\$i; fi; let i++; done"' -bind-key -n C-T new-window -a -bind-key -n M-T run-shell 'tmux_new_window' +bind-key -n C-T new-window -c '#{pane_current_path}' -a +bind-key -n M-T new-window -c '/home/neoraider' bind-key -n C-ppage prev bind-key -n C-npage next bind-key -n C-M-ppage swap-window -t :- -- cgit v1.2.3