forked from colonelpanic/dotfiles
Update PATH configuration for NixOS
This commit is contained in:
@@ -1 +1 @@
|
||||
source ~/.bashrc
|
||||
source ~/.lib/login.sh
|
||||
|
@@ -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"
|
||||
|
4
dotfiles/lib/nix_login.sh
Normal file
4
dotfiles/lib/nix_login.sh
Normal 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
12
dotfiles/lib/shellenv.sh
Normal 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
1
dotfiles/zprofile
Normal file
@@ -0,0 +1 @@
|
||||
source ~/.lib/login.sh
|
Reference in New Issue
Block a user