Last active
October 7, 2023 08:25
-
-
Save toruticas/b7cac5a1ec8958f02ef65cd64b176e88 to your computer and use it in GitHub Desktop.
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
# List of plugins | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
set -g @plugin 'thewtex/tmux-mem-cpu-load' | |
set -g @plugin 'toruticas/tmux-weather' | |
set -g @plugin 'tmux-plugins/tmux-pain-control' | |
set -g @plugin 'tmux-plugins/tmux-prefix-highlight' | |
# Solarized theme | |
set -g @plugin 'seebi/tmux-colors-solarized' | |
set -g @colors-solarized 'dark' | |
# Terminal type configuration | |
set -g default-terminal "screen-256color" | |
set -ga terminal-overrides ",xterm-256color:Tc" | |
# Act like Vim | |
setw -g mode-keys vi | |
# Act mouse mode | |
set -g mouse on | |
# Vim-like copy | |
bind-key -T copy-mode-vi v send-keys -X begin-selection | |
bind-key -T copy-mode-vi y send-keys -X copy-selection | |
# Binding keys | |
bind c new-window -c "#{pane_current_path}" | |
bind '"' split-window -c "#{pane_current_path}" | |
bind % split-window -h -c "#{pane_current_path}"'"' | |
# Status Left | |
set-option -g status-left-length 100 | |
set -g status-left '#{prefix_highlight} #[fg=green]#h #[fg=white]• #[fg=green,bright]#(uname -r | cut -c 1-6)#[default]' | |
# Window List | |
set -g status-justify centre | |
setw -g window-status-style fg=colour8 | |
setw -g window-status-current-style fg=colour15 | |
setw -g window-status-format '(#I:#W)' | |
setw -g window-status-current-format '[#I:#W]' | |
# Status Right | |
set-option -g status-right-length 140 | |
set -g status-right "#[fg=green]#($TMUX_PLUGIN_MANAGER_PATH/tmux-mem-cpu-load/tmux-mem-cpu-load --colors --interval 2)#[default]" | |
set-option -ag status-right " #[fg=white,bg=blue]%Y-%m-%d %a%l:%M" | |
set -g history-limit 10000 | |
set-option -g @tmux-weather-v2 true | |
set-option -g detach-on-destroy off | |
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) | |
run '~/.tmux/plugins/tpm/tpm' | |
# REFERENCES | |
# https://devhints.io/tmux | |
# https://github.com/rothgar/awesome-tmux |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment