Skip to content

Double disabling gonv environment creates bad terminal state #3

@swalkerhppr

Description

@swalkerhppr

Description

Disabling gonv when it is not active causes an error and sets PS1 to an empty string.

Current behavior
What is happening now?

swalker$ t gonv disable
Running gonv:disable task...
Disabling go environment
-bash: rm: No such file or directory
^C
ls
-bash: ls: No such file or directory
exit 
logout

Expected behavior
What should happen?

It should display a message that an environment is not active and not mess up the terminal.

Impact
How does this bug affect you?

Users must log out and log back in to the terminal session if they disable gonv when an environement isn't active.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions