diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2025-08-17 10:47:23 -0400 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2025-08-17 10:47:23 -0400 |
| commit | 186c8bfebd029d47e4984ed0735668509a2cef84 (patch) | |
| tree | 5bd4549bcbe13dd61b578d67e7111f256d83456f /tmux | |
| parent | Add auto-detection of tmux files as tmux file types (diff) | |
| download | dotfiles-186c8bfebd029d47e4984ed0735668509a2cef84.zip | |
Adjust tmux config to create new windows in same dir and use toggle term
Diffstat (limited to 'tmux')
| -rw-r--r-- | tmux/.config/tmux/key-remappings.tmux | 10 | ||||
| -rw-r--r-- | tmux/.config/tmux/macos.tmux | 1 | ||||
| -rw-r--r-- | tmux/.config/tmux/plugins.tmux | 2 |
3 files changed, 5 insertions, 8 deletions
diff --git a/tmux/.config/tmux/key-remappings.tmux b/tmux/.config/tmux/key-remappings.tmux index 323c89f..537ef36 100644 --- a/tmux/.config/tmux/key-remappings.tmux +++ b/tmux/.config/tmux/key-remappings.tmux @@ -8,16 +8,12 @@ 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 -bind-key - split-window -v +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 ~/.config/tmux/tmux.conf \; display-message "Config reloaded!" bind-key x kill-pane - -# Add key bindings for toggling terminal windows -bind-key -n 'C-;' run-shell -b "${HOME}/bin/tmux-toggle-term" -bind-key -n 'C-f' run-shell -b "${HOME}/bin/tmux-toggle-term float" - diff --git a/tmux/.config/tmux/macos.tmux b/tmux/.config/tmux/macos.tmux index 02fbde3..4555ea5 100644 --- a/tmux/.config/tmux/macos.tmux +++ b/tmux/.config/tmux/macos.tmux @@ -1,7 +1,6 @@ # Related: [issue #67](https://github.com/tmux-plugins/tpm/issues/67) set-environment -g PATH "/opt/homebrew/bin:/bin:/usr/bin" -# Setting the namespace set -g default-command "reattach-to-user-namespace -l /bin/zsh" # Prefix C-c copy buffer to system clipboard diff --git a/tmux/.config/tmux/plugins.tmux b/tmux/.config/tmux/plugins.tmux index d3e32d7..65c7bb5 100644 --- a/tmux/.config/tmux/plugins.tmux +++ b/tmux/.config/tmux/plugins.tmux @@ -42,4 +42,6 @@ set -g @tokyo-night-tmux_date_format YMD set -g @tokyo-night-tmux_time_format 24H set -g @tokyo-night-tmux_show_git 0 +set -g @plugin 'git.sr.ht/~eugenetriguba/tmux-toggle-term' + run '$HOME/.config/tmux/plugins/tpm/tpm' |