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

fish prompt with env and git branch #34

Closed
christophlingg opened this issue Jun 20, 2014 · 1 comment
Closed

fish prompt with env and git branch #34

christophlingg opened this issue Jun 20, 2014 · 1 comment
Labels

Comments

@christophlingg
Copy link

I am using a snippet to get my git branch shown on my fish prompt.

Is there a way to show both, the active virtual environment and the current git branch?

Thanks for your help!

@daisylb
Copy link
Collaborator

daisylb commented Jun 23, 2014

You certainly can!

I do it like this in my prompt (note that mine are on separate lines, but adding -n to the first echo would suppress the newline and put them on the same line). For that snippet, it's just a matter of adding an extra argument to the printf.

@daisylb daisylb closed this as completed Jun 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants