summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2018-05-04 07:31:41 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2018-05-04 07:31:41 +0200
commitc80418f9349599029dd61cb1c1efa98f98ab4546 (patch)
treeb22e9e14aff32d84f553f8e09d464b79b061e96b
parent797d169ce4347580c5218a660ba56ff53d6c42ba (diff)
downloadconf-misc-c80418f9349599029dd61cb1c1efa98f98ab4546.tar
conf-misc-c80418f9349599029dd61cb1c1efa98f98ab4546.zip
tmux.conf
-rw-r--r--tmux.conf8
1 files 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 :-