Skip to content

virtualenvwrapper does not work with fish shell #100

Description

@DimanNe

virtualenvwrapper does not work with fish shell

Activity

  1. dhellmann commented on Sep 2, 2024

    @dhellmann
    Contributor

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

  2. ferdnyc commented on Mar 24, 2025

    @ferdnyc
    Contributor

    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.

  3. ferdnyc commented on Mar 24, 2025

    @ferdnyc
    Contributor

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

  4. carltongibson commented on May 4, 2026

    @carltongibson
    Contributor

    I'd be inclined to close this pending an interested party providing a proof-of-concept.

  5. ferdnyc commented on May 4, 2026

    @ferdnyc
    Contributor

    +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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions