From d5b8363d3d56f99fecbf657542a512e58951547d Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 20 Jun 2022 11:41:27 -0700 Subject: 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 Tested-by: CI --- home/shell/zsh/default.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'home/shell/zsh') diff --git a/home/shell/zsh/default.nix b/home/shell/zsh/default.nix index 14ddd6c..b5858e9 100644 --- a/home/shell/zsh/default.nix +++ b/home/shell/zsh/default.nix @@ -1,5 +1,7 @@ { config, pkgs, lib, ... }: -let cfg = config.my.home.shell; +let + cfg = config.my.home.shell; + aliases = config.my.home.shell.aliases; in { config = lib.mkIf (cfg.name == "zsh") { @@ -28,10 +30,7 @@ in REPORTTIME = 5; }; - shellAliases = { - ll = "ls -l --color=auto"; - lt = "ls -ltrh --color=auto"; - }; + shellAliases = aliases; defaultKeymap = "emacs"; -- cgit 1.4.1