apps scope, pollute specialargs more, switch back to firefox

This commit is contained in:
atagen 2025-08-22 13:44:33 +10:00
parent 5003fc7953
commit 39ee6aa252
16 changed files with 253 additions and 366 deletions

View file

@ -2,6 +2,7 @@
lib,
pkgs,
inputs,
getFlakePkg',
...
}:
let
@ -36,18 +37,25 @@ in
"p" = "ps $argv | culr";
"mnt" = "mount | culr";
};
interactiveShellInit = ''
function fish_title
set -q argv[1]; or set argv fish
echo (fish_prompt_pwd_dir_length=100 prompt_pwd): $argv;
end
function fish_command_not_found
${
lib.getExe inputs.nix-index-database.packages.${pkgs.system}.comma-with-db
} "$argv[1]" "$argv[2..]"
end
${./rice/header.sh}
'';
interactiveShellInit =
let
comma = lib.getExe' (getFlakePkg' inputs.nix-index-database "comma-with-db") "comma";
in
''
function fish_title
set -q argv[1]; or set argv fish
echo (fish_prompt_pwd_dir_length=100 prompt_pwd): $argv;
end
function fish_command_not_found
set args (count $argv)
if [ $args -gt 1 ]
${comma} "$argv[1]" "$argv[2..]"
else
${comma} "$argv[1]"
end
end
${./rice/header.sh}
'';
};
programs.command-not-found.enable = false;
programs.zoxide = {