Last active
December 14, 2023 13:39
-
-
Save sizhky/34b6eeacea281233ace658bac9dc3de3 to your computer and use it in GitHub Desktop.
.tmux.conf
This file contains hidden or 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 mouse on | |
set-option -g renumber-windows on | |
bind-key R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded." | |
bind-key b send-keys "bash" C-m "cd /data1/" C-m "conda activate mdm" C-m | |
bind-key w send-keys "bash" C-m "cd /data1/" C-m "conda activate mdm" C-m "watch nvidia-smi" C-m | |
bind-key y send-keys "bash" C-m "cd /data1/yeshwanth" C-m "conda activate mdm" C-m | |
bind-key c new-window "bash" | |
# 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' | |
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) | |
run '~/.tmux/plugins/tpm/tpm' | |
set -g @plugin 'dracula/tmux' | |
# Set 256 colors | |
set -s default-terminal 'tmux-256color' | |
set -g @plugin 'tmux-plugins/tmux-resurrect' | |
set -g @plugin 'tmux-plugins/tmux-continuum' | |
# split panes using | and - | |
bind | split-window -h -c '#{pane_current_path}' "bash" # Split panes horizontal | |
bind - split-window -v -c '#{pane_current_path}' "bash" # Split panes vertically | |
unbind '"' | |
unbind % | |
# reload config file (change file location to your the tmux.conf you want to use) | |
bind r source-file ~/.tmux.conf | |
# tmux source-file ~/.tmux.conf | |
# switch panes using Alt-arrow without prefix | |
bind -n M-h select-pane -L | |
bind -n M-l select-pane -R | |
bind -n M-k select-pane -U | |
bind -n M-j select-pane -D | |
# last pane with bind + l | |
bind-key C-a last-window | |
bind-key C-z switch-client -l | |
# set -g mode-mouse on | |
set-option -g status on | |
# set-option -g status-interval 2 | |
# set-option -g status-justify "centre" | |
# set-option -g status-left-length 60 | |
# set-option -g status-right-length 90 | |
set-option -g status-right "#(~/.tmux/plugins/tmux-powerline/powerline.sh right)" | |
set -sg escape-time 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment