diff --git a/dots/.bashrc b/dots/.bashrc index 7b609fd..d26c6a2 100644 --- a/dots/.bashrc +++ b/dots/.bashrc @@ -30,11 +30,6 @@ done [ -f "$HOME/.bashrc.d/prompt" ] && . "$HOME/.bashrc.d/prompt" # }}} -# Path {{{ -# Add ~/.bin to PATH -export PATH=~/.bin:$PATH -# }}} - # History {{{ export HISTSIZE=999999 export HISTFILESIZE= # Unlimited diff --git a/home/modules/shell/bash.nix b/home/modules/shell/bash.nix index 9fe3791..962e18d 100644 --- a/home/modules/shell/bash.nix +++ b/home/modules/shell/bash.nix @@ -45,8 +45,6 @@ in ${lib.optionalString cfg.aliases.all "source /home/${username}/.bash_aliases/all"} ${lib.optionalString cfg.aliases.lang-js "source /home/${username}/.bash_aliases/lang-js"} - ${lib.optionalString cfg.addBinToPath "export PATH=${dotsPath}/.bin:$PATH"} - ${cfg.extraInit} ''; }; @@ -61,5 +59,6 @@ in // lib.optionalAttrs cfg.aliases.lang-js { ".bash_aliases/lang-js".source = dotsPath + "/.bash_aliases/lang-js"; }; + home.sessionPath = lib.optional cfg.addBinToPath "${dotsPath}/.bin"; }; }