Created
May 7, 2022 02:45
-
-
Save ats/bc7538e927887ec18e5bbcd30d40ee43 to your computer and use it in GitHub Desktop.
old tux configuration
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
############################################################################### | |
################################## PREFIX #################################### | |
############################################################################### | |
unbind C-b | |
set -g prefix ` | |
bind -r ` send-prefix | |
############################################################################### | |
################################## SETTINGS ################################### | |
############################################################################### | |
# General | |
setw -g xterm-keys on | |
set -g default-terminal "screen-256color" | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
set -g renumber-windows on | |
setw -g clock-mode-style 24 | |
set -g set-titles on | |
set -g set-titles-string '#S|#W' | |
set -g display-panes-time 800 | |
set -g display-time 1000 | |
set -g status-interval 1 | |
set -g history-limit 5000 | |
setw -g mode-keys vi | |
set -sg escape-time 1 | |
set -g status-position top | |
setw -g monitor-activity on | |
set -g visual-activity on | |
set -g mouse off | |
############################################################################### | |
################################### BINDING ################################### | |
############################################################################### | |
# Convenience bindings | |
bind r source-file ~/.tmux.conf \; display-message "Configuration reloaded" | |
bind S new-session | |
bind e new-window -n '~/.tmux.conf' '${EDITOR:-vim} ~/.tmux.conf && tmux source ~/.tmux.conf && tmux display "~/.tmux.conf sourced"' | |
bind c new-window -c '#{pane_current_path}' | |
# Kill panels without warning and sane keys | |
unbind x | |
unbind & | |
bind x kill-pane | |
bind W kill-window | |
# Pane split binds | |
unbind % | |
bind | split-window -h -c '#{pane_current_path}' | |
bind - split-window -v -c '#{pane_current_path}' | |
# Remap window navigation and resize to vim style | |
unbind j | |
bind j select-pane -D | |
unbind k | |
bind k select-pane -U | |
unbind h | |
bind h select-pane -L | |
unbind l | |
bind l select-pane -R | |
bind -r J resize-pane -D 5 | |
bind -r K resize-pane -U 5 | |
bind -r H resize-pane -L 5 | |
bind -r L resize-pane -R 5 | |
# Copy Mode | |
bind Enter copy-mode # enter copy mode | |
bind b list-buffers # list paster buffers | |
bind B delete-buffer # delete last buffer | |
bind p paste-buffer # paste from the top pate buffer | |
bind P choose-buffer # choose which buffer to paste from | |
############################################################################### | |
################################### DISPLAY ################################### | |
############################################################################### | |
set -g status-left-length 32 | |
set -g status-right-length 150 | |
set -g status-fg white | |
set -g status-bg colour236 | |
set -g window-status-activity-attr bold | |
set -g pane-border-fg colour245 | |
set -g pane-active-border-fg colour39 | |
set -g message-fg colour16 | |
set -g message-bg colour221 | |
set -g message-attr bold | |
set -g status-left "#[fg=colour235,bg=colour252,bold] ❐ #S #[fg=colour235,bg=colour245,nobold] #[fg=colour245,bg=colour239,bold] #[fg=colour245,bg=colour238,bold] #(whoami) #[fg=colour238,bg=colour237,nobold] " | |
set -g window-status-format "#[fg=colour245,bg=colour236] #I #W " | |
set -g window-status-current-format "#[fg=colour235,bg=colour37,noreverse,bold] #I #W #[fg=colour14,bg=colour30,nobold] #[fg=colour14,bg=colour24,nobold] #[fg=colour39,bg=colour237] " | |
set -g status-right "#[fg=colour15,bg=colour238] #(hostname) #[fg=colour245,bg=colour239,bold] #[fg=colour235,bg=colour245,nobold] #[fg=colour235,bg=colour252,bold] %H:%M #[fg=colour235,bg=colour245,nobold] #[fg=colour245,bg=colour239,bold] #[fg=colour15,bg=colour238] #(TZ=":US/Arizona" date +%%H:%%M) " | |
# List of plugins | |
# set -g @plugin 'tmux-plugins/tpm' | |
# set -g @plugin 'tmux-plugins/tmux-sensible' | |
# | |
# # Other examples: | |
# # set -g @plugin 'github_username/plugin_name' | |
# # set -g @plugin '[email protected]/user/plugin' | |
# # set -g @plugin '[email protected]/user/plugin' | |
# | |
# List of plugins | |
# Supports `github_username/repo` or full git repo URLs | |
set -g @tpm_plugins ' \ | |
tmux-plugins/tpm \ | |
tmux-plugins/tmux-yank \ | |
tmux-plugins/tmux-resurrect \ | |
' | |
# | |
# Load plugins | |
run-shell '~/.tmux/plugins/tpm/tpm' | |
# # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) | |
#run -b '~/.tmux/plugins/tpm/tpm' | |
set -g @resurrect-capture-pane-contents 'on' | |
# Local config | |
if-shell "[ -f ~/.tmux.conf.local ]" 'source ~/.tmux.conf.local' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment