Skip to content

Temporarily hide or disable Starship prompt #5804

Answered by matoruru
mloskot asked this question in Q&A
Discussion options

You must be logged in to vote

@mloskot You can use starship toggle <module> to disable the specific module on the fly, like starship toggle kubernetes, starship toggle azure, ...

But if you need to disable whole starship, you can have the condition like this

[ "$STARSHIP_DISABLE" = "true" ] || <Your starship init command>

in your .bashrc or config.fish whatever files.

And open the new shell process with no starship by STARSHIP_DISABLE=true bash 😀

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mloskot
Comment options

Answer selected by mloskot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants