nixdots/modules/home-manager/cli/tmux.nix
2026-05-09 21:13:38 +03:00

25 lines
760 B
Nix

{
programs.tmux = {
enable = true;
#shortcut = "a";
#prefix = "C-a";
extraConfig = ''
# https://old.reddit.com/r/tmux/comments/mesrci/tmux_2_doesnt_seem_to_use_256_colors/
#set -g status-bg colour99
set -g @plugin 'tmux-plugins/tpm'
set -g @rose_pine_variant 'main'
set -g @plugin 'rose-pine/tmux'
# easy-to-remember split pane commands
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
set -g @rose_pine_host 'on'
set -g @rose_pine_hostname_short 'on'
set -g @rose_pine_user 'on'
set -g @rose_pine_directory 'on'
run '~/.tmux/plugins/tpm/tpm'
'';
};
}