Added fool-proof way of passing Windows PATH over to WSL after genie is initialized.

This commit is contained in:
Richard Blair
2021-08-31 18:10:24 -04:00
parent 06a36bf9c2
commit 47aae7f1f7
2 changed files with 5 additions and 1 deletions

View File

@@ -63,6 +63,8 @@ pkg.init() {
# Check if systemd-genie is installed, and let's execute that if we're not in a bottle. # Check if systemd-genie is installed, and let's execute that if we're not in a bottle.
if [ "$INSIDE_GENIE" != true ]; then if [ "$INSIDE_GENIE" != true ]; then
if [ -e /etc/genie.ini ]; then if [ -e /etc/genie.ini ]; then
# I don't trust genie to preserve the Windows path, so we're going to do it
echo "export PATH=\$PATH:\"$PATH\"" >$HOME/.shell/etc/env
genie -s genie -s
exit 0 exit 0
fi fi

4
zshrc
View File

@@ -1,5 +1,7 @@
if [ "$INSIDE_GENIE" = true ]; then if [ "$INSIDE_GENIE" = true ]; then
# Do nothing if [ -e "$HOME/.shell/etc/env" ]; then
source $HOME/.shell/etc/env
fi
fi fi
declare -x PATH=$PATH:$HOME/.ellipsis/bin declare -x PATH=$PATH:$HOME/.ellipsis/bin