Last active
August 24, 2020 18:33
-
-
Save Brethel/7d7be170d49caecaa44311b63acdb34f to your computer and use it in GitHub Desktop.
tmux config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -g default-terminal "screen-256color" | |
set -g status-position top | |
set -g status-fg yellow | |
set -g status-bg blue | |
#setw -g mode-mouse on | |
#set -g mouse-resize-pane on | |
#set -g mouse-select-pane on | |
#set -g mouse-select-window on | |
#set -g mouse-select-window on | |
#set -g mouse-select-pane on | |
#set -g status-utf8 on | |
#setw -g window-status-fg yellow | |
#setw -g window-status-bg blue | |
#setw -g window-status-attr dim | |
# set colors for the active window | |
#setw -g window-status-current-fg white | |
#setw -g window-status-current-bg red | |
#setw -g window-status-current-attr bright | |
# pane colors | |
#set -g pane-border-fg green | |
#set -g pane-border-bg black | |
#set -g pane-active-border-fg black | |
#set -g pane-active-border-bg yellow | |
setw -g monitor-activity on | |
set -g visual-activity on | |
setw -g automatic-rename on | |
# splitting panes | |
bind | split-window -h | |
bind - split-window -v | |
# Pane resizing | |
bind -r H resize-pane -L 5 | |
bind -r J resize-pane -D 5 | |
bind -r K resize-pane -U 5 | |
bind -r L resize-pane -R 5 | |
# C-c: save into system clipboard (+). With preselection. | |
bind C-c choose-buffer "run \"tmux save-buffer -b %% - | xclip -i -sel clipboard\" \; run \" tmux display \\\"Clipboard \(+\) filled with: $(tmux save-buffer -b %1 - | dd ibs=1 obs=1 status=noxfer count=80 2> /dev/null)... \\\" \" " | |
# C-v: copy from + clipboard. | |
bind C-v run "tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer" \; run "tmux display \"Copied from \(+\) $(xclip -o -sel clipboard | dd ibs=1 obs=1 status=noxfer count=80 2> /dev/null)... \"" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#set prefix | |
set-option -g prefix C-a | |
unbind-key C-a | |
bind-key C-a send-prefix | |
#use alt-arrow to switch panes | |
bind -n M-Left select-pane -L | |
bind -n M-Right select-pane -R | |
bind -n M-Up select-pane -U | |
bind -n M-Down select-pane -D | |
#use shift-arrow to switch windows | |
bind -n S-Left previous-window | |
bind -n S-Right next-window | |
#mouse mode | |
setw -n mouse on | |
#set easier window split keys | |
bind-key v split-window -h | |
bind-key h split-window -v | |
#eacy config reload | |
bind-key r source-file ~/.tmux.conf \; display-message "tmux config reloaded." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###set -g default-terminal "screen-256color" | |
### | |
#### vi-like keybindings | |
###setw -g mode-keys vi | |
###bind h select-pane -L | |
###bind j select-pane -D | |
###bind k select-pane -U | |
###bind l select-pane -R | |
###bind-key -T copy-mode-vi 'v' send -X begin-selection | |
###bind-key -T copy-mode-vi 'y' send -X copy-selection | |
### | |
#### zenburn theme | |
###setw -g clock-mode-colour colour117 | |
###setw -g mode-attr bold | |
###setw -g mode-fg colour117 | |
###setw -g mode-bg colour238 | |
###set -g status-bg colour235 | |
###set -g status-fg colour248 | |
###setw -g window-status-current-fg colour223 | |
###setw -g window-status-current-bg colour237 | |
###setw -g window-status-current-attr bold | |
###set -g message-attr bold | |
###set -g message-fg colour117 | |
###set -g message-bg colour235 | |
### | |
#### fancy status line: user@host, date, time | |
###set-option -g status-right "#(whoami)@#(hostname -s) #[fg=colour187,bold]%a %Y-%m-%d %H:%M" | |
###set -g status-right-length 50 | |
###set -g status-left-length 20 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment