all repos — nixfiles @ 5c0fb04ad65e3df591fdc1a503f2f5fd29120519

System and user configuration, managed by nix and home-manager

fish: use plugin for more extensive !-history commands

Alan Pearce
commit

5c0fb04ad65e3df591fdc1a503f2f5fd29120519

parent

090a0be0655d6a85ee86e11752b6fbcb8e3deec1

1 file changed, 1 insertion(+), 7 deletions(-)

changed files
M user/settings/fish.nixuser/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" = {