Added fool-proof way of passing Windows PATH over to WSL after genie is initialized.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user