caiogondim / bullet-train.zsh

:bullettrain_side: An oh-my-zsh shell theme based on the Powerline Vim plugin
MIT License
2.82k stars 383 forks source link

improved support of virtualenv name #221

Open Aluriak opened 7 years ago

Aluriak commented 7 years ago

Allow things like 'hello {venv name} !' to be shown after the prefix, and fix (something that, to me, looks like) a problem explained in #220 . Doc also is updated.

Note that the %m construct, already used for host name in context, is reused. I didn't understand how exactly the %m itself is translated to the hostname at some point, but in my case, i just use a zsh idiom to replace any occurence of %m by the virtualenv name, allowing the default value to mimic the expected behavior (print the name of the venv), but letting user to specify prefixes & suffixes, and eventually totally drop the virtualenv name.

I need this for personal use, but i don't know zsh well ; i would love to get feedbacks.