From 876cdb0f65db9d5d933b74dcff1addff6850bb85 Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Sun, 23 Feb 2025 03:03:58 +0800 Subject: [PATCH] feat(nixos): add bashrc to home.nx to allow scripts to be loaded into user PATH --- home.nix | 7 +++++++ scripts/gs | 3 +++ 2 files changed, 10 insertions(+) create mode 100755 scripts/gs diff --git a/home.nix b/home.nix index 3962a7e..69c1dc2 100644 --- a/home.nix +++ b/home.nix @@ -9,6 +9,12 @@ # recursive = true; # }; + home.file."bin" = { + source = ./scripts; + recursive = true; + executable = true; + }; + home.packages = with pkgs; [ fastfetch neovim @@ -52,6 +58,7 @@ }; bashrcExtra = '' eval $(thefuck --alias) + export PATH="$PATH:$HOME/bin" ''; }; diff --git a/scripts/gs b/scripts/gs new file mode 100755 index 0000000..7914e0a --- /dev/null +++ b/scripts/gs @@ -0,0 +1,3 @@ +#!/bin/sh + +git status