From 9ebf5e8828a79964302ccac7b2bd0783dbf77ecc Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Wed, 12 Oct 2022 20:38:30 -0400 Subject: [PATCH] feat(shell): improve gcd alias --- modules/global/shell.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/global/shell.nix b/modules/global/shell.nix index 16128cf..e47785a 100644 --- a/modules/global/shell.nix +++ b/modules/global/shell.nix @@ -13,7 +13,7 @@ in # git g = "git"; - gcd = "cd $(git root)"; + gcd = "cd $(git root || echo \".\")"; # grep grep = "rg";