nixos-config/home-manager/stvnliu/shells/default.nix
Zhongheng Liu 28506968d7
feat: expanded fish configuration
Refactored fish configuration values into separate directory

Created fish init shell code for nh and zoxide

Reverted removal of cd=z alias since it works now
2024-08-11 20:40:39 +08:00

30 lines
533 B
Nix

{
pkgs,
lib,
config,
...
}: let
cfg = config.myShells;
in
with lib; {
imports = [
./zsh.nix
./fish
./zoxide.nix
./direnv.nix
./starship
];
options.myShells = {
defaultShell = with types; mkOption {type = str;};
enable = mkEnableOption "Enables the shell customisation module.";
};
config = {
myShells = {
zsh.enable = false;
fish.enable = true;
defaultShell = "fish";
prompts.starship.enable = true;
};
};
}