This commit is contained in:
2026-02-15 22:26:47 +00:00
commit 7be0309d27
19 changed files with 860 additions and 0 deletions

56
config-files/tmux.conf Normal file
View File

@@ -0,0 +1,56 @@
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# bind-key q last-window
# bind q last-window
bind-key -T prefix e switch-client -T last_window
bind-key -T last_window e last-window
# bind cc new-window -c "#{pane_current_path}"
#
# want to open new panel with current session path ...
# but space already taken for another shortcut
#
# bind-key -T prefix Space switch-client -T prefix_c
# bind-key -T prefix_c c new-window -c "#{pane_current_path}"
# bind-key -T prefix_c % split-window -h -c "#{pane_current_path}"
# bind-key -T prefix_c '"' split-window -v -c "#{pane_current_path}"
# bind Space split-window -h -c "#{pane_current_path}"
# bind r split-window -h -c "#{pane_current_path}"
# bind % split-window -h -c "#{pane_current_path}"
# bind '"' split-window -v -c "#{pane_current_path}"
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# weird escape char when tmux starting
set -sg escape-time 250
# vi mode
setw -g mode-keys vi
set -s copy-command 'wl-copy'
# (Optional) Explicitly bind 'v' to begin selection if not working
# bind-key -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'
# press <prefix>T to toggle between Cb and Ca
bind-key T run-shell "~/.tmux/toggle-prefix.sh"
set-option -g default-shell "/bin/bash"
set -g default-terminal "screen-256color"
new -n WindowName bash --login
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# 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'