(tmux) simpify tmux config
This commit is contained in:
parent
8eda6edb27
commit
22a8a24a40
3 changed files with 15 additions and 134 deletions
|
|
@ -1,12 +0,0 @@
|
|||
set -g @plugin 'tmux-plugins/tpm'
|
||||
|
||||
# restore tmux sessions after system restart
|
||||
# bindings:
|
||||
# ctrl-s -> save
|
||||
# ctrl-r -> restore
|
||||
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
||||
set -g @plugin 'tmux-plugins/tmux-open'
|
||||
|
||||
# init tmux plugin manager
|
||||
run '~/.tmux/plugins/tpm/tpm'
|
||||
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
# these configurations are from https://github.com/craftzdog/dotfiles-public/blob/master/.config/tmux/statusline.conf
|
||||
|
||||
# vim: ft=tmux
|
||||
set -g mode-style "fg=#eee8d5,bg=#073642"
|
||||
|
||||
set -g message-style "fg=#eee8d5,bg=#073642"
|
||||
set -g message-command-style "fg=#eee8d5,bg=#073642"
|
||||
|
||||
set -g pane-border-style "fg=#073642"
|
||||
set -g pane-active-border-style "fg=#eee8d5"
|
||||
|
||||
set -g status "on"
|
||||
set -g status-interval 1
|
||||
set -g status-justify "left"
|
||||
|
||||
set -g status-style "fg=#586e75,bg=#073642"
|
||||
|
||||
set -g status-bg "#002b36"
|
||||
|
||||
set -g status-left-length "100"
|
||||
set -g status-right-length "100"
|
||||
|
||||
set -g status-left-style NONE
|
||||
set -g status-right-style NONE
|
||||
|
||||
set -g status-left "#[fg=#073642,bg=#eee8d5,bold] #S #[fg=#eee8d5,bg=#93a1a1,nobold,nounderscore,noitalics]#[fg=#15161E,bg=#93a1a1,bold] #(whoami) #[fg=#93a1a1,bg=#002b36]"
|
||||
set -g status-right "#[fg=#586e75,bg=#002b36,nobold,nounderscore,noitalics]#[fg=#93a1a1,bg=#586e75]#[fg=#657b83,bg=#586e75,nobold,nounderscore,noitalics]#[fg=#93a1a1,bg=#657b83]#[fg=#93a1a1,bg=#657b83,nobold,nounderscore,noitalics]#[fg=#15161E,bg=#93a1a1,bold] #h "
|
||||
|
||||
setw -g window-status-activity-style "underscore,fg=#839496,bg=#002b36"
|
||||
setw -g window-status-separator ""
|
||||
setw -g window-status-style "NONE,fg=#839496,bg=#002b36"
|
||||
setw -g window-status-format '#[fg=#002b36,bg=#002b36]#[default] #I #W #[fg=#002b36,bg=#002b36,nobold,nounderscore,noitalics]'
|
||||
setw -g window-status-current-format '#[fg=#002b36,bg=#eee8d5]#[fg=#b58900,bg=#eee8d5] #I #[fg=#eee8d5,bg=#b58900] #W #[fg=#b58900,bg=#002b36,nobold]'
|
||||
104
tmux/tmux.conf
104
tmux/tmux.conf
|
|
@ -1,97 +1,23 @@
|
|||
set -g default-terminal "xterm-256color"
|
||||
set -ga terminal-overrides ",xterm-256color:Tc"
|
||||
# Fix Colors
|
||||
set -g default-terminal "screen-256color"
|
||||
set -as terminal-features ",xterm-256color:RGB"
|
||||
|
||||
# prefix
|
||||
unbind C-b
|
||||
set-option -g prefix C-t
|
||||
set-option -g repeat-time 0
|
||||
set-option -g focus-events on
|
||||
set -s set-clipboard on
|
||||
|
||||
# remove auto window rename
|
||||
set-option -g allow-rename off
|
||||
# Scrolling
|
||||
setw -g mouse on
|
||||
|
||||
## Key bindings
|
||||
|
||||
set-window-option -g mode-keys vi
|
||||
|
||||
# reload tmux config file
|
||||
bind r source-file ~/.tmux.conf \; display "Reloaded!"
|
||||
|
||||
# open cwd (only for macOS)
|
||||
bind o run-shell "open #{pane_current_path}"
|
||||
|
||||
# remove all window splits
|
||||
bind -r e kill-pane -a
|
||||
|
||||
# split window
|
||||
bind s split-window -h -c "#{pane_current_path}"
|
||||
bind v split-window -v -c "#{pane_current_path}"
|
||||
|
||||
# unbind default split mappings
|
||||
unbind '"'
|
||||
unbind %
|
||||
|
||||
# move around panes
|
||||
bind -r h select-pane -L
|
||||
bind -r j select-pane -D
|
||||
bind -r k select-pane -U
|
||||
bind -r l select-pane -R
|
||||
|
||||
# resize panes
|
||||
bind -r + resize-pane -U 5
|
||||
bind -r - resize-pane -D 5
|
||||
bind -r < resize-pane -L 5
|
||||
bind -r > resize-pane -R 5
|
||||
|
||||
bind -r t last-window
|
||||
|
||||
## basic settings
|
||||
set-option -g status-justify "left"
|
||||
|
||||
set-option -g status-fg cyan
|
||||
set-option -g status-bg black
|
||||
set -g pane-active-border-style fg=colour166,bg=default
|
||||
set -g window-style fg=colour10,bg=default
|
||||
set -g window-active-style fg=colour12,bg=default
|
||||
set-option -g history-limit 64096
|
||||
|
||||
set -sg escape-time 10
|
||||
|
||||
## Colours
|
||||
|
||||
# default statusbar colours
|
||||
set-option -g status-style bg=colour235,fg=colour136,default
|
||||
|
||||
# default window title colours
|
||||
set-window-option -g window-status-style fg=colour244,bg=colour234,dim
|
||||
|
||||
# active window title colours
|
||||
set-window-option -g window-status-current-style fg=colour166,bg=default,bright
|
||||
|
||||
# pane border
|
||||
set-option -g pane-border-style fg=colour235 # base02 - solarized dark
|
||||
set-option -g pane-active-border-style fg=colour136,bg=colour235
|
||||
|
||||
# message text
|
||||
set-option -g message-style bg=colour235,fg=colour166
|
||||
|
||||
# pane number display
|
||||
set-option -g display-panes-active-colour colour33 # blue
|
||||
set-option -g display-panes-colour colour166 # orange
|
||||
|
||||
# clock
|
||||
set-window-option -g clock-mode-colour colour64 # gree
|
||||
|
||||
# allow the title bar to adapt to whatever host you connect to
|
||||
set -g set-titles on
|
||||
set -g set-titles-string "#T"
|
||||
|
||||
# start window indexing from 1 instead of 0
|
||||
set -g base-index 1
|
||||
setw -g pane-base-index 1
|
||||
|
||||
## Imports
|
||||
# Statusline Colors
|
||||
set -g status-style bg=terminal,fg=terminal
|
||||
|
||||
source ~/.config/tmux/statusline.conf
|
||||
source ~/.config/tmux/plugin.conf
|
||||
# Statusline location
|
||||
set -g status-position bottom
|
||||
|
||||
# Current window name bold
|
||||
set -g window-status-current-style fg=terminal,bold
|
||||
|
||||
# Time settings
|
||||
set -g status-right "%I:%M %p, %d-%b-%y, %a"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue