fix(nix): tmux calls correct fish, reload hack

This commit is contained in:
Léana 江 2024-01-19 23:43:40 +01:00 committed by Léana 江
parent 0b1cd71f58
commit d6afc7ecf5
2 changed files with 7 additions and 8 deletions

View file

@ -1,8 +1,14 @@
{pkgs, ...}: {
home.file = {
tmux = {
source = ./tmux.conf;
target = ".tmux.conf";
text =
builtins.readFile ./tmux.conf
+ ''
set -g default-command "${pkgs.fish}/bin/fish" # Use fish
set -g default-shell "${pkgs.fish}/bin/fish"
bind r source-file "~/.dotfiles/nix/home/common/tmux/default.nix" \; display-message "tmux.conf reloaded."
'';
};
};
home.packages = [pkgs.tmux];