Skip to content

virtualenvwrapper does not work with fish shell #100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
DimanNe opened this issue Jun 24, 2024 · 3 comments
Open

virtualenvwrapper does not work with fish shell #100

DimanNe opened this issue Jun 24, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@DimanNe
Copy link

DimanNe commented Jun 24, 2024

virtualenvwrapper does not work with fish shell

@dhellmann
Copy link
Contributor

I don't have any special interest in fish. Do you want to work on contributing support, @DimanNe ?

@ferdnyc
Copy link
Contributor

ferdnyc commented 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:

# Saved as test_arg0.sh
echo "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.

@ferdnyc
Copy link
Contributor

ferdnyc commented Mar 24, 2025

It seems the equivalent Fish syntax is {$VARIABLE}. My eyes cannot roll any harder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants