fish: use plugin for more extensive !-history commands
1 file changed, 1 insertion(+), 7 deletions(-)
changed files
M user/settings/fish.nix → user/settings/fish.nix
@@ -26,6 +26,7 @@ with pkgs.fishPlugins; [ fzf-fish autopair + fishbang hydro { name = "ghq";@@ -43,15 +44,8 @@ shellAliases = { hist-freq-lines = lib.mkForce "history | sort | uniq -c | sort -gr | head -n100 | less"; hist-freq-commands = lib.mkForce "history | cut -d' ' -f 1 | sort | uniq -c | sort -gr | head -n100 | less"; }; - shellAbbrs = { - "!!" = { - position = "anywhere"; - function = "last_history_item"; - }; - }; functions = { dus = "du -hd1 $argv[1] | sort -h"; - last_history_item = "echo $history[1]"; }; }; xdg.configFile."fish/completions" = {