diff --git a/homes/modules/fish.nix b/homes/modules/fish.nix index eaca566..8fdcc4b 100755 --- a/homes/modules/fish.nix +++ b/homes/modules/fish.nix @@ -12,6 +12,14 @@ config = { programs.fish = { enable = true; + generateCompletions = true; + + vendor = { + config.enable = true; + functions.enable = true; + completions.enable = true; + }; + interactiveShellInit = '' # add dotnet completions if it exists (ie we're in a virtual environment) if type -q dotnet @@ -27,8 +35,13 @@ echo -n $greetings[(random 1 (count $greetings))] end + function gitignore -a type + curl -sL "https://www.gitignore.io/api/$type" + end + set -g fish_greeting (rand_greet) ''; + plugins = [ { name = "grc";