Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###############################################
- ### SETTINGS
- ###############################################
- set -g mouse on
- set -g base-index 1
- set -g pane-base-index 1
- set-window-option -g pane-base-index 2
- set-option -g renumber-windows on
- set-window-option -g mode-keys vi
- set -ga terminal-overrides ",xterm-256color:Tc"
- set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm'
- set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # underscore colours - needs tmux-3.0
- set-option -g history-limit 100000
- # set -g detach-on-destroy off # don't exit from tmux when closing a session
- ###############################################
- ### KEYMAPS
- ###############################################
- unbind C-b
- set -g prefix C-a
- bind C-a send-prefix
- bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded" # Reload configuration
- bind -n C-n next-window
- bind -n C-p previous-window
- # Spliting window
- bind | split-window -h -c "#{pane_current_path}"
- bind - split-window -v -c "#{pane_current_path}"
- unbind '"'
- unbind %
- bind Q confirm-before -p "kill-session #S? (y/n)" kill-session
- bind-key x kill-pane # skip "kill-pane 1? (y/n)" prompt
- bind C-c copy-mode
- bind -T copy-mode-vi v send-keys -X begin-selection
- bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
- bind S command-prompt -p "New Session:" "new-session -A -s '%%'"
- bind C-t run-shell "sesh connect \"$(
- sesh list --icons | fzf-tmux -p 55%,60% \
- --no-sort --ansi --border-label ' sesh ' --prompt '⚡ ' \
- --header ' ^a all ^t tmux ^g configs ^x zoxide ^d tmux kill ^f find' \
- --bind 'tab:down,btab:up' \
- --bind 'ctrl-a:change-prompt(⚡ )+reload(sesh list --icons)' \
- --bind 'ctrl-t:change-prompt(🪟 )+reload(sesh list -t --icons)' \
- --bind 'ctrl-g:change-prompt(⚙️ )+reload(sesh list -c --icons)' \
- --bind 'ctrl-x:change-prompt(📁 )+reload(sesh list -z --icons)' \
- --bind 'ctrl-f:change-prompt(🔎 )+reload(fd -H -d 2 -t d -E .Trash . ~)' \
- --bind 'ctrl-d:execute(tmux kill-session -t {2..})+change-prompt(⚡ )+reload(sesh list --icons)' \
- )\""
- bind-key g new-window -c "#{pane_current_path}" -n "🌳" "lazygit 2> /dev/null"
- ###############################################
- ### PLUGINS
- ###############################################
- set -g @plugin 'tmux-plugins/tpm'
- set -g @plugin 'christoomey/vim-tmux-navigator'
- set -g @plugin 'catppuccin/tmux#v2.1.0'
- set -g @plugin 'wfxr/tmux-fzf-url'
- set -g @plugin 'tmux-plugins/tmux-resurrect'
- set -g @catppuccin_flavor "mocha"
- set -g @catppuccin_window_status_style "rounded"
- set -g status-right-length 100
- set -g status-left-length 100
- set -g status-left ""
- set -g status-right "#{E:@catppuccin_status_application}"
- set -agF status-right "#{E:@catppuccin_status_cpu}"
- set -ag status-right "#{E:@catppuccin_status_session}"
- set -ag status-right "#{E:@catppuccin_status_uptime}"
- set -agF status-right "#{E:@catppuccin_status_battery}"
- set -g @catppuccin_flavor "mocha"
- # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
- run '~/.tmux/plugins/tpm/tpm'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement