Files
nix-wsl/hm_programs/tmux.nix
2026-02-15 22:26:47 +00:00

42 lines
1.1 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{ pkgs, ... }: {
programs.tmux = {
enable = true;
extraConfig = ''
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
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -sg escape-time 250
set-window-option -g mode-keys vi
# press <prefix>T to toggle between Cb and Ca
# bind-key T run-shell "~/.tmux/toggle-prefix.sh"
set-option -g default-shell "${pkgs.bash}/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'
'';
};
}