make fish dotfiles more verbose + add gitignore function to generate .gitignore files
This commit is contained in:
parent
d3a642fafb
commit
d68132b8fb
1 changed files with 13 additions and 0 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue