feat(user): add ~/Core/scripts to PATH and source hm-session-vars in bashrc
This commit is contained in:
1 parent
9cc4c24c04
commit
721d607a1c
2 files changed
+5
-1
No files matched your search
@@ -18,6 +18,8 @@
|
||||
# Ensure cargo/bin (and other user binaries) are in the system PATH
|
||||
home.sessionPath = [
|
||||
"$HOME/.cargo/bin"
|
||||
"$HOME/.local/bin"
|
||||
"$HOME/Core/scripts"
|
||||
];
|
||||
|
||||
# The state version of Home Manager that this configuration is compatible with.
|
||||
|
||||
@@ -146,7 +146,6 @@
|
||||
|
||||
# Shell Aliases for speed, productivity, and command overrides
|
||||
shellAliases = {
|
||||
appctl = "/home/kiskaadee/Core/scripts/appctl";
|
||||
zed = "zeditor";
|
||||
reload = "exec bash";
|
||||
ff = "fastfetch --logo none";
|
||||
@@ -205,6 +204,9 @@
|
||||
# Inject modular shell helper scripts directly into .bashrc.
|
||||
# This allows us to keep discrete logic files without cluttering home.nix or base.nix.
|
||||
bashrcExtra = ''
|
||||
# Ensure Home Manager session variables and PATH are available in non-login / SSH shells
|
||||
[[ -f ~/.nix-profile/etc/profile.d/hm-session-vars.sh ]] && . ~/.nix-profile/etc/profile.d/hm-session-vars.sh
|
||||
|
||||
${builtins.readFile ./shell/wayland.sh} # Wayland clipboard helper (wlc)
|
||||
${builtins.readFile ./shell/git.sh} # Git workflow automations (gacp, gitignore)
|
||||
${builtins.readFile ./shell/pdf.sh} # Command line PDF decryption helper
|
||||
|
||||
Reference in new issue
Block a user