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

bulker overwrites PS1 #50

Open
stolarczyk opened this issue Mar 31, 2020 · 6 comments
Open

bulker overwrites PS1 #50

stolarczyk opened this issue Mar 31, 2020 · 6 comments
Assignees
Labels
question Further information is requested

Comments

@stolarczyk
Copy link
Member

if I activate a crate, bulker creates a new prompt, which is awesome. But It also overwrites my previously set prompt configuration in PS1. Is it possible to prepend or append bulker prompt to whatever I have already set?

[mstolarczyk@MichalsMBP peppro](master): bulker-activate databio/peppro
Bulker config: /Users/mstolarczyk/bulker_config.yaml
Activating bulker crate: databio/peppro
databio/peppro|~/Uczelnia/UVA/code/peppro$
@stolarczyk stolarczyk added the question Further information is requested label Mar 31, 2020
@nsheff
Copy link
Member

nsheff commented Mar 31, 2020

Yes, it's possible to customize a shell prompt in the shell_prompt config option in your bulker config file.

However, this is broken at the moment, due to something broken about Yacman. See #46

@nsheff
Copy link
Member

nsheff commented Mar 31, 2020

can you solve databio/yacman#32 ?

@stolarczyk
Copy link
Member Author

ok, will look into this

@nsheff
Copy link
Member

nsheff commented Mar 25, 2021

Ok, after a long time I think the answer to this is to put your custom prompt in shell_prompt and just don't use quotes around it, or use singled quotes (better). And, use \b to refer to the bulker crate. So, for example add this to your bulker config:

  shell_prompt: '[\u@\h(\b) \W] $ '

nsheff added a commit that referenced this issue Mar 25, 2021
@nsheff
Copy link
Member

nsheff commented Mar 25, 2021

@stolarczyk can you see if this now solves your use case?

https://bulker.databio.org/en/dev/custom_prompts/

@nsheff
Copy link
Member

nsheff commented Mar 25, 2021

you can also now use -p to not update prompts if you want to just keep using your default prompt.

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

No branches or pull requests

2 participants