From 7ddcf749a83b10110e7b4fb10aadd26084fdcce3 Mon Sep 17 00:00:00 2001 From: seth Date: Sat, 6 Jul 2024 18:17:28 -0400 Subject: seth/fish: use shellAbbrs for `"!!"` --- users/seth/shell/fish.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'users/seth/shell') diff --git a/users/seth/shell/fish.nix b/users/seth/shell/fish.nix index d910c05..e74155b 100644 --- a/users/seth/shell/fish.nix +++ b/users/seth/shell/fish.nix @@ -20,6 +20,7 @@ in { enable = true; + # TODO: do i still need this weird sourcing? interactiveShellInit = '' set -l nixfile ${config.home.homeDirectory}/.nix-profile/etc/profile.d/nix.fish if test -e $nixfile @@ -27,8 +28,6 @@ in end ${lib.getExe pkgs.nix-your-shell} fish | source - - abbr -a !! --position anywhere --function last_history_item ''; functions = { @@ -37,6 +36,10 @@ in shellAbbrs = { nixgc = "sudo nix-collect-garbage -d && nix-collect-garbage -d"; + "!!" = { + position = "anywhere"; + function = "last_history_item"; + }; }; } -- cgit v1.2.3