diff --git a/home/modules/fish.nix b/home/modules/fish.nix index f40945b..93050c7 100644 --- a/home/modules/fish.nix +++ b/home/modules/fish.nix @@ -40,5 +40,24 @@ in builtins.readFile "${inputs.fish_theme}/fish_prompt.fish" + "\n" + builtins.readFile ../fish/config.fish; }; + + home.packages = with pkgs; [ + (writeShellApplication { + name = "lnmv"; + runtimeInputs = [ coreutils ]; + text = '' + # This is crude i know, more shell guards and stuff that I'm bad at + + # Usage: + # lnmv + + data=''${1%/} + target=''${2%/} + + mv "$data" "$target" + ln -s "$target" "$data" + ''; + }) + ]; }; }