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 ];
|
2023-11-03 04:12:17 +00:00
|
|
|
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-11-03 04:12:17 +00:00
|
|
|
'';
|
|
|
|
};
|
2023-10-26 02:37:42 +00:00
|
|
|
}
|