Make tmux & tpm XDG compliant.
This commit is contained in:
parent
b3b6d91f33
commit
2da738f1a8
4 changed files with 13 additions and 5 deletions
76
.config/tmux/tmux.conf
Normal file
76
.config/tmux/tmux.conf
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
# Status Bar Appearance customization
|
||||
#set -g status-bg black
|
||||
#set -g status-fg white
|
||||
set -g status-bg green
|
||||
set -g window-status-current-bg blue
|
||||
|
||||
# show that activity happens but don't display a huge 'activity happening' notification
|
||||
setw -g monitor-activity on
|
||||
set -g visual-activity off
|
||||
|
||||
# Start counting windows and panes at 1
|
||||
set -g base-index 1
|
||||
setw -g pane-base-index 1
|
||||
|
||||
# Custom modifier key
|
||||
set -g prefix C-a
|
||||
unbind-key C-b
|
||||
bind-key C-a send-prefix
|
||||
|
||||
# Terminal improvements
|
||||
set -g terminal-overrides "xterm*:XT:smcup@:rmcup@"
|
||||
set-window-option -g automatic-rename on
|
||||
set -g renumber-windows on
|
||||
set-option -g set-titles on
|
||||
set -g mouse on
|
||||
set -g default-terminal screen-256color
|
||||
set -g status-keys vi
|
||||
set -g history-limit 10000
|
||||
|
||||
# Clear scrollback buffer
|
||||
bind l clear-history
|
||||
|
||||
# Custom key bindings to split the window
|
||||
# split it using modifier key + v or s
|
||||
#bind-key h split-window -h
|
||||
#bind-key v split-window -v
|
||||
# split it w/o modifier key using - or _
|
||||
#bind - split-window -v
|
||||
#bind _ split-window -h
|
||||
|
||||
# No delay for escape key press
|
||||
set -sg escape-time 0
|
||||
|
||||
# WINDOW SWITCHING
|
||||
# Easier window navigation
|
||||
bind -n C-Tab next-window
|
||||
bind -n C-S-Tab previous-window
|
||||
#bind -n C-S-Left previous-window
|
||||
#bind -n C-S-Right next-window
|
||||
|
||||
# Copy to cygwin clipboard
|
||||
bind -n C-t run "tmux save-buffer - > /dev/clipboard"
|
||||
|
||||
# PANE & WINDOW DESTRUCTION
|
||||
# Kill tabs quicker
|
||||
bind-key x kill-pane
|
||||
bind-key C-x kill-window
|
||||
|
||||
# Plugins -- TO INITALLY SET UP THE PLUGINS PRESS bind-key I (that is shift i)
|
||||
# -- a message will appear after a second saying succes
|
||||
#run-shell ~/.tmux-plugins/resurrect/resurrect.tmux
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||
set -g @plugin 'tmux-plugins/tmux-pain-control'
|
||||
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
|
||||
set -g @plugin 'tmux-plugins/tmux-yank'
|
||||
set -g @plugin 'Morantron/tmux-fingers'
|
||||
|
||||
# custom right bar uses powerline/default/blue as base, adds bind-key indicator (prefix_highlight)
|
||||
# to use it go to your theme and disable the right status bar (by commenting it out)
|
||||
set -g status-right "#{prefix_highlight} #[fg=colour235,bg=colour233]#[fg=colour240,bg=colour235] %H:%M:%S #[fg=colour240,bg=colour235]#[fg=colour233,bg=colour240] %d-%b-%y #[fg=colour245,bg=colour240]#[fg=colour232,bg=colour245,bold] #H "
|
||||
|
||||
set -g @plugin 'jimeh/tmux-themepack'
|
||||
set -g @themepack 'powerline/default/blue'
|
||||
|
||||
run -b "${TMUX_PLUGIN_MANAGER_PATH}/tpm/tpm"
|
||||
Loading…
Add table
Add a link
Reference in a new issue