Skip to content
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

Can komodoenv-update also update the prompt on the command line #232

Open
oddvarlia opened this issue Oct 22, 2021 · 2 comments
Open

Can komodoenv-update also update the prompt on the command line #232

oddvarlia opened this issue Oct 22, 2021 · 2 comments

Comments

@oddvarlia
Copy link

When running komodoenv-update when ert reports that your komodoenv is out of date, the commandline prompt showing the komodoversion is not updated. Is it possible that this is also done to be in sync with the komodoenv version that is used?

Capture
image

@oddvarlia oddvarlia changed the title Can komodoenv-update also update the promt on the command line Can komodoenv-update also update the prompt on the command line Oct 22, 2021
@sondreso
Copy link
Contributor

Is this updated correctly if you deactivate the komodo env, and then activate it again?

@pinkwah
Copy link
Collaborator

pinkwah commented Oct 26, 2021

I imagine the only way to achieve this is to have an alias like the following:

function komodoenv-update {
    # Do the updating
    $KOMODO_PATH/root/bin/komodoenv-update

    # Refresh the source
    source $KOMODO_PATH/enable
}

But this would immediately fail when activating a non-komodoenv environment, since it wouldn't know about this komodoenv-update bash function. Perhaps it's worth it still?

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

No branches or pull requests

3 participants