refactor(shell): nixify adding '.bin' to 'PATH'
This commit is contained in:
@@ -30,11 +30,6 @@ done
|
|||||||
[ -f "$HOME/.bashrc.d/prompt" ] && . "$HOME/.bashrc.d/prompt"
|
[ -f "$HOME/.bashrc.d/prompt" ] && . "$HOME/.bashrc.d/prompt"
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
# Path {{{
|
|
||||||
# Add ~/.bin to PATH
|
|
||||||
export PATH=~/.bin:$PATH
|
|
||||||
# }}}
|
|
||||||
|
|
||||||
# History {{{
|
# History {{{
|
||||||
export HISTSIZE=999999
|
export HISTSIZE=999999
|
||||||
export HISTFILESIZE= # Unlimited
|
export HISTFILESIZE= # Unlimited
|
||||||
|
|||||||
@@ -45,8 +45,6 @@ in
|
|||||||
${lib.optionalString cfg.aliases.all "source /home/${username}/.bash_aliases/all"}
|
${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.aliases.lang-js "source /home/${username}/.bash_aliases/lang-js"}
|
||||||
|
|
||||||
${lib.optionalString cfg.addBinToPath "export PATH=${dotsPath}/.bin:$PATH"}
|
|
||||||
|
|
||||||
${cfg.extraInit}
|
${cfg.extraInit}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
@@ -61,5 +59,6 @@ in
|
|||||||
// lib.optionalAttrs cfg.aliases.lang-js {
|
// lib.optionalAttrs cfg.aliases.lang-js {
|
||||||
".bash_aliases/lang-js".source = dotsPath + "/.bash_aliases/lang-js";
|
".bash_aliases/lang-js".source = dotsPath + "/.bash_aliases/lang-js";
|
||||||
};
|
};
|
||||||
|
home.sessionPath = lib.optional cfg.addBinToPath "${dotsPath}/.bin";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user