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 = {
|
config = {
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
generateCompletions = true;
|
||||||
|
|
||||||
|
vendor = {
|
||||||
|
config.enable = true;
|
||||||
|
functions.enable = true;
|
||||||
|
completions.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
interactiveShellInit = ''
|
interactiveShellInit = ''
|
||||||
# add dotnet completions if it exists (ie we're in a virtual environment)
|
# add dotnet completions if it exists (ie we're in a virtual environment)
|
||||||
if type -q dotnet
|
if type -q dotnet
|
||||||
|
|
@ -27,8 +35,13 @@
|
||||||
echo -n $greetings[(random 1 (count $greetings))]
|
echo -n $greetings[(random 1 (count $greetings))]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function gitignore -a type
|
||||||
|
curl -sL "https://www.gitignore.io/api/$type"
|
||||||
|
end
|
||||||
|
|
||||||
set -g fish_greeting (rand_greet)
|
set -g fish_greeting (rand_greet)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
plugins = [
|
plugins = [
|
||||||
{
|
{
|
||||||
name = "grc";
|
name = "grc";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue