Update PATH configuration for NixOS

This commit is contained in:
Ivan Malison 2018-05-30 22:11:41 -07:00
parent 26839badad
commit 8d9870404d
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8
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" 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" 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

View File

@ -5,4 +5,4 @@ export THIS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export DOTFILES_DIR="$(readlink -f $THIS_DIR/dotfiles)" export DOTFILES_DIR="$(readlink -f $THIS_DIR/dotfiles)"
echo $DOTFILES_DIR echo $DOTFILES_DIR
rcup -d $DOTFILES_DIR -S "emacs.d" -S "config/taffybar" -S "config/xmonad" -S "config/xmonad/taffybar" rcup -d $DOTFILES_DIR -S "emacs.d" -S "config/taffybar" -S "config/xmonad" -S "config/xmonad/taffybar" -S "lib"