diff options
| author | Franck Cuny <franck@fcuny.net> | 2022-06-20 11:41:27 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2022-06-20 14:40:02 -0700 |
| commit | d5b8363d3d56f99fecbf657542a512e58951547d (patch) | |
| tree | aa4a3dc3cc789ed91e9d20d5d6aabe6f37ea5b79 /home/shell/default.nix | |
| parent | ref(home/shell): make it easier to share common things between shells (diff) | |
| download | infra-d5b8363d3d56f99fecbf657542a512e58951547d.tar.gz | |
ref(home/shell): move all shell aliases to a shared configuration
By moving the aliases to a shared module, they can be used between zsh
and fish.
Change-Id: Ifcfe0af3b90825fe3a67bc1796d4cf65a58d3ff2
Reviewed-on: https://cl.fcuny.net/c/world/+/456
Reviewed-by: Franck Cuny <franck@fcuny.net>
Tested-by: CI
Diffstat (limited to 'home/shell/default.nix')
| -rw-r--r-- | home/shell/default.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/home/shell/default.nix b/home/shell/default.nix index 35a6275..f34d997 100644 --- a/home/shell/default.nix +++ b/home/shell/default.nix @@ -1,7 +1,9 @@ { config, lib, pkgs, ... }: with lib; -let cfg = config.my.home.shell; +let + cfg = config.my.home.shell; + aliases = import ./aliases.nix; in { options.my.home.shell = { @@ -10,6 +12,13 @@ in type = types.enum [ "fish" "zsh" ]; example = "zsh"; }; + aliases = mkOption { + default = aliases; + description = '' + A wrapper for shellAliases for zsh and fish + ''; + type = types.attrsOf types.str; + }; }; imports = [ ./fish ./zsh ]; |
