Ensure .profile is loaded by shells.

Took this code out of /etc/profile and /etc/bashrc from NixOS
This commit is contained in:
2018-01-04 18:35:09 -05:00
parent 1739eb4ecc
commit bb11db42a5
2 changed files with 15 additions and 4 deletions

View File

@@ -1,5 +1,9 @@
#{- ~/.profile -}#
# Only execute this file once per shell
if [ -n "$__PROFILE_SOURCED" ]; then return; fi
export __PROFILE_SOURCED=1
#{- PATH -}#
# Prepend ~/.local/bin to the path and append the current directory to the path