make fish dotfiles more verbose + add gitignore function to generate .gitignore files

This commit is contained in:
Emile Clark-Boman 2025-08-08 20:14:52 +10:00
parent d3a642fafb
commit d68132b8fb

View file

@ -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";