Open arialdomartini opened 9 years ago
this branch need a merge with master again. master isn't contains theese lines (spesificly eval_prompt_callback commits)
Tested locally and looks like this PR can be merged onto master.
There is something else that needs to be done to merge and close this PR?
This PL is aimed to solve the issue #38. It depends on the PL https://github.com/arialdomartini/oh-my-git/pull/40 of oh-my-git, since it relies on two functions defined in
base.sh
This PL makes the oppa-lana-style theme use the prompt callback function
omg_prompt_callback
, which can be used to define a generic segment to be displayed in the second line of the prompt.Please, refer to the documentation in https://github.com/arialdomartini/oh-my-git/pull/40
Since colors in zsh are managed slightly differently than in bash, the callback function aimed to inject the virtualenv name is also a bit different. The following snipped can be used in
.zshrc
When inside a virtualenv, this results in the prompt
rather that the prompt