summaryrefslogtreecommitdiffstats
path: root/tmux.conf
diff options
context:
space:
mode:
Diffstat (limited to '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 :-