From 6f4633f1a1ca4867a340e040b969cd5cc869f3b2 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Mon, 3 Apr 2023 10:31:19 -0400 Subject: [PATCH] refactor: split shellAlias --- home/shellcommon.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/home/shellcommon.nix b/home/shellcommon.nix index cc6cd73..2ad4a13 100644 --- a/home/shellcommon.nix +++ b/home/shellcommon.nix @@ -1,10 +1,14 @@ { pkgs, ... }: let - shellAliases = { + # These aliases should work on all shells. + shellAliasesSimple = { e = "nvim"; - ee = "nvim \"$(fzf)\""; g = "${pkgs.git}/bin/git"; lg = "lazygit"; + }; + # These aliases should work on bash/zsh. + shellAliases = shellAliasesSimple // { + ee = "nvim \"$(fzf)\""; ls = "${pkgs.exa}/bin/exa"; l = "ls"; ll = "ls -l";