FAQ & Known issues
FAQ
Troubleshoot
Why prompt display weird character ?
During the setup of your prompt, you might have encuntered bad rendering of the prompt, like wrong characters display or wrong colors display as shown below:
-
The v1, "classic" version
-
The v2, "powerline" version
This might come from either :
-
Bad colors support of your terminal, see Configure your prompt - Colors support
-
Bad unicode support of your terminal, see Configure your prompt - Unicode support
You can see Add terminal support for more information about this issue.
Other questions
Why not using some prompt framework like bash-it oh-my-zsh or prezto ?
I used to use bash-it and oh-my-zsh, but I was overhelmed by all their options, plugins, etc., that I not fully used. Moreover, I had to manage two configuration, one for bash and one for zsh. So I ended on making my own with only things I need and I try to unified bash and zsh.
Why managing both bash and zsh ?
I do sysadmin, and I try to not install thing that could upset my coworker which mainly use bash. Moreover, bash is installed by default on most GNU/Linux distribution, allowing me to get my own prompt on most GNU/Linux distro.
Why is there no date
segment ?
It is intended. I do not need date in my terminal, but I have prepared this segment. It is the tutorial Add your own segment to show how to add your own segment.
This segment is simple to code, so you will need to add it yourself by reading the Add your own segment.
Know Issues
Direnv integration
When using direnv
, segment that should be shown because global variables are
set by direnv
are not shown directly. User must press <Enter>
once again to
view them (or enter any command). This is due to the fact that the direnv hook
is executed after precmd
as shown with the gif below.