feat(nixos): add bashrc to home.nx to allow scripts to be loaded into user PATH

This commit is contained in:
Mohammad Rafiq 2025-02-23 03:03:58 +08:00
parent e7932bd12b
commit 876cdb0f65
2 changed files with 10 additions and 0 deletions

View file

@ -9,6 +9,12 @@
# recursive = true; # recursive = true;
# }; # };
home.file."bin" = {
source = ./scripts;
recursive = true;
executable = true;
};
home.packages = with pkgs; [ home.packages = with pkgs; [
fastfetch fastfetch
neovim neovim
@ -52,6 +58,7 @@
}; };
bashrcExtra = '' bashrcExtra = ''
eval $(thefuck --alias) eval $(thefuck --alias)
export PATH="$PATH:$HOME/bin"
''; '';
}; };

3
scripts/gs Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
git status