tmux: move fish related settings to fish module

This commit is contained in:
Primrose 2024-12-01 13:49:18 +01:00
parent 05b262212d
commit 32cc98c10d
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
3 changed files with 18 additions and 13 deletions

View file

@ -2,12 +2,7 @@
{
programs.tmux.extraConfig =
''
set -g default-command "${pkgs.fish}/bin/fish" # Use fish
set -g default-shell "${pkgs.fish}/bin/fish"
''
+ (builtins.readFile ./tmux.conf)
(builtins.readFile ./tmux.conf)
+ (lib.optionalString pkgs.stdenv.isDarwin ''
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel 'pbcopy'

View file

@ -85,11 +85,6 @@ unbind Up
bind [ swap-window -d -t -1
bind ] swap-window -d -t +1
# Prime says the find window is for chumps. Don't use the find window
bind -n C-f run-shell "tmux neww fish -c tmux-sessionizer"
bind -n C-g run-shell "fish -c tmux-home"
bind s run-shell "fish -c tmux-last"
# fast kill
bind C-k confirm-before kill-session