diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2025-12-20 10:53:14 -0500 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2025-12-20 10:54:02 -0500 |
| commit | 7b6dbb921650e2a52929f025b67be57609fda6d4 (patch) | |
| tree | 895416312698cfe4ac61d4eed0f071d7743c0214 /tmux | |
| parent | Remove openbsd conditional in zsh (diff) | |
| download | dotfiles-7b6dbb921650e2a52929f025b67be57609fda6d4.zip | |
Rework dotfiles to *only* contain dotfiles
Diffstat (limited to 'tmux')
| -rw-r--r-- | tmux/.config/tmux/key-remappings.tmux | 19 | ||||
| -rw-r--r-- | tmux/.config/tmux/macos.tmux | 13 | ||||
| -rw-r--r-- | tmux/.config/tmux/options.tmux | 40 | ||||
| -rw-r--r-- | tmux/.config/tmux/plugins.tmux | 46 | ||||
| -rw-r--r-- | tmux/.config/tmux/vi.tmux | 6 | ||||
| -rw-r--r-- | tmux/.tmux.conf | 14 |
6 files changed, 0 insertions, 138 deletions
diff --git a/tmux/.config/tmux/key-remappings.tmux b/tmux/.config/tmux/key-remappings.tmux deleted file mode 100644 index 103722f..0000000 --- a/tmux/.config/tmux/key-remappings.tmux +++ /dev/null @@ -1,19 +0,0 @@ -# Remap prefix from 'C-b' to 'C-a' -# -# This works well if you remap the regular Caps Lock key to Ctrl. -unbind C-b -set-option -g prefix C-a -bind-key C-a send-prefix - -# Remap pane splits to something more sane than the default. -# -# Split panes using | for horizontal splits and - for vertical splits -bind-key | split-window -h -c "#{pane_current_path}" -bind-key - split-window -v -c "#{pane_current_path}" -unbind '"' -unbind % -bind-key c new-window -c "#{pane_current_path}" - -# Easier configuration reloading and pane killing -bind-key r source-file ~/.tmux.conf \; display-message "Config reloaded!" -bind-key x kill-pane diff --git a/tmux/.config/tmux/macos.tmux b/tmux/.config/tmux/macos.tmux deleted file mode 100644 index 4555ea5..0000000 --- a/tmux/.config/tmux/macos.tmux +++ /dev/null @@ -1,13 +0,0 @@ -# Related: [issue #67](https://github.com/tmux-plugins/tpm/issues/67) -set-environment -g PATH "/opt/homebrew/bin:/bin:/usr/bin" - -set -g default-command "reattach-to-user-namespace -l /bin/zsh" - -# Prefix C-c copy buffer to system clipboard -bind C-c run "tmux save-buffer - | reattach-to-user-namespace pbcopy" - -# Prefix C-v paste system clipboard into tmux -bind C-v run "tmux set-buffer \"$(reattach-to-user-namespace pbpaste)\"; tmux paste-buffer" - -bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy" -bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy" diff --git a/tmux/.config/tmux/options.tmux b/tmux/.config/tmux/options.tmux deleted file mode 100644 index c4e1ee6..0000000 --- a/tmux/.config/tmux/options.tmux +++ /dev/null @@ -1,40 +0,0 @@ -# Don't rename windows automatically. -# -# I often will use the `,` key to rename windows. -# However, by default, tmux will update the window -# title to the last executed command. -set-option -g allow-rename off - -# Enable mouse support (clickable windows, panes, resizable panes) -set-option -g mouse on - -# Enable system clipboard integration (macOS) -set-option -g set-clipboard on - -# Allow focus events (for editors like Neovim) -set -g focus-events on - -# Start windows and panes at 1, not 0 -set-option -g base-index 1 -set-option -g pane-base-index 1 -set-window-option -g pane-base-index 1 -set-option -g renumber-windows on - -set-option -g status-position top - -# Don't do anything when a 'bell' rings -set-option -g visual-activity off -set-option -g visual-bell off -set-option -g visual-silence off -set-window-option -g monitor-activity off -set-option -g bell-action none - -# Enable hyperlinks -set-option -as terminal-features ",*:hyperlinks" - -# Enable true color support -set -ga terminal-overrides ",*256col*:Tc" -set -ga terminal-overrides ",tmux-256color:Tc" - -set -g default-terminal "tmux-256color" -set -g default-shell $SHELL diff --git a/tmux/.config/tmux/plugins.tmux b/tmux/.config/tmux/plugins.tmux deleted file mode 100644 index 9f7fa90..0000000 --- a/tmux/.config/tmux/plugins.tmux +++ /dev/null @@ -1,46 +0,0 @@ -# Plugin manager -set-environment -g TMUX_PLUGIN_MANAGER_PATH "$HOME/.config/tmux/plugins/" -set-option -g @plugin 'tmux-plugins/tpm' - -# 'Sensible' set of defaults -set-option -g @plugin 'tmux-plugins/tmux-sensible' - -# Tmux FZF is a plugin that integrates FZF with tmux -TMUX_FZF_ORDER="session|window|pane|command|keybinding" -TMUX_FZF_OPTIONS="-p -w 90% -h 70% -m" -set-option -g @plugin 'sainnhe/tmux-fzf' - -# Resurrect is a plugin that saves and restores tmux sessions -set-option -g @plugin 'tmux-plugins/tmux-resurrect' -set-option -g @resurrect-save 'S' -set-option -g @resurrect-restore 'R' - -# Continuum is a plugin that automatically saves tmux sessions -# at regular intervals -set-option -g @plugin 'tmux-plugins/tmux-continuum' -set-option -g @continuum-restore 'on' -set-option -g @continuum-save-interval '15' -set-option -g @resurrect-strategy-nvim 'session' - -# Vim Tmux Navigator allows you to navigate between Vim and tmux panes -set-option -g @plugin 'christoomey/vim-tmux-navigator' - -set-option -g @plugin 'tmux-plugins/tmux-yank' -set-option -g @plugin 'tmux-plugins/tmux-open' - -set-option -g @plugin "janoamaral/tokyo-night-tmux" -set-option -g @tokyo-night-tmux_theme night -set-option -g @tokyo-night-tmux_transparent 1 -set-option -g @tokyo-night-tmux_window_id_style digital -set-option -g @tokyo-night-tmux_pane_id_style hsquare -set-option -g @tokyo-night-tmux_zoom_id_style dsquare -set-option -g @tokyo-night-tmux_terminal_icon -set-option -g @tokyo-night-tmux_active_terminal_icon -set-option -g @tokyo-night-tmux_window_tidy_icons 1 -set-option -g @tokyo-night-tmux_show_git 0 -set-option -g @tokyo-night-tmux_show_wbg 0 -set-option -g @tokyo-night-tmux_show_datetime 0 - -set-option -g @plugin 'https://git.sr.ht/~eugenetriguba/tmux-toggle-term' - -run '$HOME/.config/tmux/plugins/tpm/tpm' diff --git a/tmux/.config/tmux/vi.tmux b/tmux/.config/tmux/vi.tmux deleted file mode 100644 index 85f2f37..0000000 --- a/tmux/.config/tmux/vi.tmux +++ /dev/null @@ -1,6 +0,0 @@ -set-window-option -g mode-keys vi - -# Use visual selection mode as vi -bind-key -T copy-mode-vi v send-keys -X begin-selection -bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle -bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf deleted file mode 100644 index 4d2dbde..0000000 --- a/tmux/.tmux.conf +++ /dev/null @@ -1,14 +0,0 @@ -# Resolve issue on macOS with homebrew installed tmux -# where it is symlinked to /usr/local/bin but tmux wants -# to look for the executable in /usr/bin when executing -# `run` commands. -# -# https://github.com/tmux-plugins/tpm/issues/67#issuecomment-319561401 -set-environment -g PATH "/usr/local/bin:/bin:/usr/bin" - -source-file ~/.config/tmux/key-remappings.tmux -source-file ~/.config/tmux/options.tmux -source-file ~/.config/tmux/vi.tmux -if-shell "uname | grep -q Darwin" "source-file ~/.config/tmux/macos.tmux" -source-file ~/.config/tmux/plugins.tmux - |