blob: f3e41d9ac73a94358483f68f904521488984c64a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{ config, lib, pkgs, ... }:
let
cfg = config.my.home.shell;
aliases = config.my.home.shell.aliases;
in
{
config = lib.mkIf (cfg.name == "fish") {
programs.fish = {
enable = true;
shellAliases = aliases;
interactiveShellInit = builtins.readFile ./interactive.fish;
loginShellInit = builtins.readFile ./login.fish;
};
xdg.configFile."fish/functions" = {
source = ./functions;
recursive = true;
};
};
}
|