36 lines
924 B
Bash
36 lines
924 B
Bash
# Source the tmux config file
|
|
bind r source-file ~/.tmux.conf \; display "Reloaded!"
|
|
|
|
# Mouse usage
|
|
set -g mouse on
|
|
|
|
# Increase history
|
|
set-option -g history-limit 5000
|
|
|
|
# Intuitive split commands
|
|
bind | split-window -hc "#{pane_current_path}"
|
|
bind - split-window -vc "#{pane_current_path}"
|
|
|
|
# Swapping windows
|
|
bind -r "<" swap-window -d -t -1
|
|
bind -r ">" swap-window -d -t +1
|
|
|
|
# Keeping current path
|
|
bind c new-window -c "#{pane_current_path}"
|
|
|
|
# Toggle windows and sessions
|
|
bind Space last-window
|
|
|
|
# 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 'github_username/plugin_name#branch'
|
|
# set -g @plugin 'git@github.com:user/plugin'
|
|
# set -g @plugin 'git@bitbucket.com:user/plugin'
|
|
|
|
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
|
run '~/.tmux/plugins/tpm/tpm'
|