You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
virtualenvwrapper does not work with fish shell #100
I don't see Fish ever working, TBH. I wrote this little test script in #105 to explore the best way of setting $VIRTUALENVWRAPPER_SCRIPT:
# Saved as test_arg0.shecho"0: $0"echo"BASH_SOURCE: ${BASH_SOURCE}"echo"ZSH_ARGZERO: ${ZSH_ARGZERO}"echo"ZSH_SCRIPT: ${ZSH_SCRIPT}"
Then I tried to run it through Fish:
$ fish
ferd@$HOSTNAME /tmp> source test_arg0.sh
test_arg0.sh (line 2): Variables cannot be bracketed. In fish, please use "$BASH_SOURCE".
echo"BASH_SOURCE: ${BASH_SOURCE}"
If Fish rejects ${VARIABLE} syntax, that's game over. It'd require a complete rewrite that'd no longer be compatible with any of the other shells.
+1 from me, unless some Fish user wants to port the setup script to their shell and include it as an additional implementation I think Fish support is dead in the water. It's insufficiently Bourne-compatible to be able to use the same shell scripts as the currently-supported shells.
Activity
dhellmann commentedon Sep 2, 2024
I don't have any special interest in fish. Do you want to work on contributing support, @DimanNe ?
ferdnyc commentedon Mar 24, 2025
I don't see Fish ever working, TBH. I wrote this little test script in #105 to explore the best way of setting
$VIRTUALENVWRAPPER_SCRIPT:Then I tried to run it through Fish:
If Fish rejects
${VARIABLE}syntax, that's game over. It'd require a complete rewrite that'd no longer be compatible with any of the other shells.ferdnyc commentedon Mar 24, 2025
It seems the equivalent Fish syntax is
{$VARIABLE}. My eyes cannot roll any harder.carltongibson commentedon May 4, 2026
I'd be inclined to close this pending an interested party providing a proof-of-concept.
ferdnyc commentedon May 4, 2026
+1 from me, unless some Fish user wants to port the setup script to their shell and include it as an additional implementation I think Fish support is dead in the water. It's insufficiently Bourne-compatible to be able to use the same shell scripts as the currently-supported shells.