aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tmux/basic.conf51
-rw-r--r--tmux/tmux.conf3
2 files changed, 3 insertions, 51 deletions
diff --git a/tmux/basic.conf b/tmux/basic.conf
deleted file mode 100644
index e3c4c63..0000000
--- a/tmux/basic.conf
+++ /dev/null
@@ -1,51 +0,0 @@
-set -g status-style "fg=green,bg=black"
-set-window-option -g window-status-current-style "bg=green,fg=black"
-set -g status-right "#[fg=black,bg=green] #(whoami)@#h"
-
-# Pretty nifty little option to mirror input for all panes
-bind M-s setw synchronize-panes
-
-# Allow the hotkeys to be switched using M-x to C-x, M-b to C-b, and so forth
-bind M-x set prefix C-x
-bind M-b set prefix C-b
-bind M-a set prefix C-a
-
-setw -g mode-keys vi
-set-option -g default-terminal "tmux-256color"
-set-option -ga terminal-overrides ",xterm*:Tc"
-set-option -g allow-rename off
-
-# Press v to "visually" and y to "yank" the text
-# Press `c-b ]` to paste
-# If you ever want to look up a keybind use `c-b ?`
-bind-key -T copy-mode-vi v send-keys -X begin-selection
-bind-key -T copy-mode-vi y send-keys -X copy-selection
-
-# Rather large histroy buffer so I don't lose shit
-set-option -g history-limit 16000
-
-# Fix for certian applications such as Nvim
-set -sg escape-time 0
-
-# Select panes with vim like bindings
-bind-key M-k select-pane -U
-bind-key M-j select-pane -D
-bind-key M-h select-pane -L
-bind-key M-l select-pane -R
-
-
-# Reload configuration
-bind-key r source ~/.tmux.conf
-# Respawn the pane # Useful if you have `set -g remain-on-exit on` or so
-bind-key M-r respawn-pane
-
-
-# Change the status line a little bit, most are close to defaults
-set -g status-left-length 16
-set -g status-left "[#S] "
-
-set -g status-right-length 40
-set -g window-status-format "#I:#W#F"
-
-set -g set-titles on
-set -g set-titles-string "tmux: #{session_name} [#I]#{window_name} -- #T"
diff --git a/tmux/tmux.conf b/tmux/tmux.conf
index 7761cd6..8d0ff4c 100644
--- a/tmux/tmux.conf
+++ b/tmux/tmux.conf
@@ -4,6 +4,9 @@ set -g status-right "#[fg=black,bg=green] #(whoami)@#h|m:#(sh $HOME/.tmux_helper
# For a basic tmux configuration without the helper
# set -g status-right "#[fg=black,bg=green] #(whoami)@#h"
+# If you mark a pane with c-b m you can swap it tapping this
+bind-key M-s swap-pane
+
# Pretty nifty little option to mirror input for all panes
bind M-s setw synchronize-panes