diff options
| author | seth <[email protected]> | 2024-07-06 18:17:28 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2024-07-09 15:38:51 -0400 |
| commit | 7ddcf749a83b10110e7b4fb10aadd26084fdcce3 (patch) | |
| tree | 7f5c861795d1331db49b8429eadf3ce3549372e7 /users | |
| parent | 1143e31f70355576cfc2f7b3063a9302b6f9de71 (diff) | |
seth/fish: use shellAbbrs for `"!!"`
Diffstat (limited to 'users')
| -rw-r--r-- | users/seth/shell/fish.nix | 7 |
1 files changed, 5 insertions, 2 deletions
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"; + }; }; } |
