mirror of
https://github.com/tomru/DotfilesOld.git
synced 2026-03-03 06:27:21 +01:00
use GNU stow for setup
This commit is contained in:
69
tmux/.tmux.conf
Normal file
69
tmux/.tmux.conf
Normal file
@@ -0,0 +1,69 @@
|
||||
# force a reload of the config file
|
||||
unbind r
|
||||
bind r source-file ~/.tmux.conf
|
||||
|
||||
# start window numbering at 1 for easier switching
|
||||
set -g base-index 1
|
||||
|
||||
# colors
|
||||
set -g default-terminal "screen-256color"
|
||||
|
||||
# Use vim keybindings in copy mode
|
||||
setw -g mode-keys vi
|
||||
|
||||
# bah, C-B is ugly
|
||||
unbind C-b
|
||||
set -g prefix C-a
|
||||
bind C-a send-prefix
|
||||
|
||||
# Smart pane switching with awareness of Vim splits.
|
||||
# See: https://github.com/christoomey/vim-tmux-navigator
|
||||
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
|
||||
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
|
||||
bind-key -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L"
|
||||
bind-key -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D"
|
||||
bind-key -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U"
|
||||
bind-key -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R"
|
||||
bind-key -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l"
|
||||
bind-key -T copy-mode-vi C-h select-pane -L
|
||||
bind-key -T copy-mode-vi C-j select-pane -D
|
||||
bind-key -T copy-mode-vi C-k select-pane -U
|
||||
bind-key -T copy-mode-vi C-l select-pane -R
|
||||
bind-key -T copy-mode-vi C-\ select-pane -l
|
||||
|
||||
# splitting panes
|
||||
bind | split-window -h
|
||||
bind - split-window -v
|
||||
|
||||
# listen to alerts from all windows
|
||||
set -g bell-action any
|
||||
|
||||
# mouse support
|
||||
set -g mouse on
|
||||
|
||||
# looks
|
||||
set -g status "on"
|
||||
set -g status-right-attr "none"
|
||||
set -g status-attr "none"
|
||||
set -g status-left-attr "none"
|
||||
set -g pane-active-border-fg "colour248"
|
||||
set -g pane-border-fg "colour238"
|
||||
set -g status-bg "colour236"
|
||||
set -g message-fg "colour237"
|
||||
set -g message-bg "colour248"
|
||||
set -g message-command-fg "colour237"
|
||||
set -g message-command-bg "colour248"
|
||||
setw -g window-status-fg "colour237"
|
||||
setw -g window-status-bg "colour214"
|
||||
setw -g window-status-attr "none"
|
||||
setw -g window-status-activity-bg "colour237"
|
||||
setw -g window-status-activity-attr "none"
|
||||
setw -g window-status-activity-fg "colour248"
|
||||
setw -g window-status-separator ""
|
||||
|
||||
set -g status-left "#[fg=colour248,bg=colour241] #S #[fg=colour241,bg=colour237]"
|
||||
set -g status-right "#[fg=colour239,bg=colour237]#[fg=colour246,bg=colour239] %Y-%m-%d %H:%M #[fg=colour248,bg=colour239]#[fg=colour237,bg=colour248] #h "
|
||||
setw -g window-status-format "#[fg=colour237,bg=colour239]#[fg=colour223,bg=colour239] #I:#[fg=colour223,bg=colour239] #W #[fg=colour239,bg=colour237]"
|
||||
setw -g window-status-current-format "#[fg=colour239,bg=colour248]#[fg=colour239,bg=colour214] #I:#[fg=colour239,bg=colour214] #W #[fg=colour214,bg=colour237]"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user