Update PATH configuration for NixOS
This commit is contained in:
parent
26839badad
commit
8d9870404d
@ -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
|
@ -5,4 +5,4 @@ export THIS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
export DOTFILES_DIR="$(readlink -f $THIS_DIR/dotfiles)"
|
||||
|
||||
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"
|
||||
|
Loading…
Reference in New Issue
Block a user