feat(home:fish): add gitroot alias

This commit is contained in:
ooks-io 2024-07-28 15:29:54 +12:00
parent de7d57a87e
commit 0442fdc4ee
2 changed files with 1 additions and 17 deletions

View file

@ -16,6 +16,7 @@ in
ls = "${getExe eza} -a --icons --group-directories-first";
lst = "${getExe eza} -T -L 5 --icons --group-directories-first";
du = "${getExe dust}";
gitroot = "cd (git rev-parse --show-toplevel)";
};
shellAbbrs = {
f = "cd $FLAKE";

View file

@ -1,17 +0,0 @@
{ lib, config, osConfig, ... }:
let
inherit (lib) mkIf;
cfg = config.ooknet.shell.fish;
admin = osConfig.ooknet.host.admin;
in
{
config = mkIf (cfg.enable || admin.shell == "fish") {
programs.fish.functions = {
man = ''
:q
''
};
};
}