Add tmux
This commit is contained in:
parent
350a37192f
commit
44fad18d31
1 changed files with 77 additions and 0 deletions
77
private_dot_config/tmux/tmux.conf
Normal file
77
private_dot_config/tmux/tmux.conf
Normal file
|
@ -0,0 +1,77 @@
|
|||
# start with window 1 (instead of 0)
|
||||
set -g base-index 1
|
||||
|
||||
# start with pane 1
|
||||
set -g pane-base-index 1
|
||||
|
||||
# split panes using | and -, make sure they open in the same path
|
||||
bind | split-window -h -c "#{pane_current_path}"
|
||||
bind - split-window -v -c "#{pane_current_path}"
|
||||
|
||||
unbind '"'
|
||||
unbind %
|
||||
|
||||
# open new windows in the current path
|
||||
bind c new-window -c "#{pane_current_path}"
|
||||
|
||||
# reload config file
|
||||
bind r source-file ~/.config/tmux/tmux.conf
|
||||
|
||||
unbind p
|
||||
bind p previous-window
|
||||
|
||||
# shorten command delay
|
||||
set -sg escape-time 1
|
||||
|
||||
# don't rename windows automatically
|
||||
set -g allow-rename off
|
||||
|
||||
# mouse control (clickable windows, panes, resizable panes)
|
||||
set -g mouse on
|
||||
|
||||
# enable vi mode keys
|
||||
set-window-option -g mode-keys vi
|
||||
|
||||
# set default terminal mode to 256 colors
|
||||
set -g default-terminal "xterm-256color"
|
||||
set -ga terminal-overrides ",xterm-256color:Tc"
|
||||
|
||||
# allow focus events to get through to applications running in tmux
|
||||
set -g focus-events on
|
||||
|
||||
# loud or quiet?
|
||||
set -g visual-activity on
|
||||
set -g visual-bell on
|
||||
set -g visual-silence off
|
||||
setw -g monitor-activity off
|
||||
set -g bell-action none
|
||||
|
||||
# modes
|
||||
setw -g clock-mode-colour green
|
||||
setw -g mode-style 'fg=black bg=magenta bold'
|
||||
|
||||
# panes
|
||||
set -g pane-border-style 'fg=brightblack'
|
||||
set -g pane-active-border-style 'fg=green'
|
||||
|
||||
# statusbar
|
||||
set -g status-position bottom
|
||||
set -g status-justify left
|
||||
set -g status-style 'fg=magenta'
|
||||
|
||||
set -g status-left '#{?client_prefix,#[fg=magenta],#[fg=brightblack]}● '
|
||||
set -g status-left-length 10
|
||||
|
||||
set -g status-right ''
|
||||
|
||||
setw -g window-status-current-style 'fg=black bg=red bold'
|
||||
setw -g window-status-current-format '#[bg=terminal fg=green]#[bg=green fg=black]#I #W #F#[bg=terminal fg=green]#[bg=green fg=black]'
|
||||
|
||||
setw -g window-status-style 'fg=green'
|
||||
setw -g window-status-separator ''
|
||||
setw -g window-status-format ' #I #[fg=white]#W #[fg=blue]#F '
|
||||
|
||||
setw -g window-status-bell-style 'fg=red bg=black bold'
|
||||
|
||||
# messages
|
||||
set -g message-style 'fg=yellow bg=terminal bold'
|
Loading…
Add table
Add a link
Reference in a new issue