dotfiles.nix/darwin/fish.nix

25 lines
557 B
Nix
Raw Permalink Normal View History

2024-07-18 14:16:04 +00:00
{
config,
pkgs,
lib,
...
}:
{
2023-10-26 02:37:42 +00:00
environment.variables.SHELL = lib.getExe pkgs.fish;
environment.shells = [ pkgs.fish ];
programs.fish = {
enable = true;
useBabelfish = true;
babelfishPackage = pkgs.babelfish;
# needed to address bug where $PATH is not properly set for fish:
# https://github.com/LnL7/nix-darwin/issues/122
shellInit = ''
for p in (string split : ${config.environment.systemPath})
if not contains $p $fish_user_paths
set -Ua fish_user_paths $p
end
2023-10-26 02:37:42 +00:00
end
'';
};
2023-10-26 02:37:42 +00:00
}