Update PATH configuration for NixOS

This commit is contained in:
2018-05-30 22:11:41 -07:00
parent 26839badad
commit 8d9870404d
6 changed files with 21 additions and 3 deletions

View File

@@ -1 +1 @@
source ~/.bashrc
source ~/.lib/login.sh

View File

@@ -1,5 +1,6 @@
source "$HOME/.lib/shellpath.sh"
setup_unless_environment_variable_exists ENV_PATH_SETUP_DONE || _setup_path
# XXX: This is duplicated from env with a different var to avoid issues with /etc/profile
command_exists python && setup_unless_environment_variable_exists LOGIN_PATH_SETUP_DONE _setup_path
source_directory_files "$HOME/.lib/login"

View File

@@ -0,0 +1,4 @@
source "$HOME/.lib/shellpath.sh"
command_exists python && setup_unless_environment_variable_exists NIX_PATH_SETUP_DONE _setup_path

12
dotfiles/lib/shellenv.sh Normal file
View File

@@ -0,0 +1,12 @@
source "$HOME/.lib/shellpath.sh"
# XXX: This PATH setup var is only actually set in login.sh which is definitely
# strange. The reason for this is that because env runs BEFORE profile, things
# in places like /etc/profile can actually clobber the path setup that we do.
# Disbled setup here. Doing it in profile instead
if command_exists python; then
environment_variable_exists LOGIN_PATH_SETUP_DONE || setup_unless_environment_variable_exists ENV_PATH_SETUP_DONE _setup_path
fi
source_directory_files "$HOME/.lib/shellenv"

1
dotfiles/zprofile Normal file
View File

@@ -0,0 +1 @@
source ~/.lib/login.sh