(vocabulary)
It's the one that improves the visibility of vim's status line and prompts such as bash and zsh. ~~ I gave up because the settings were not reflected well ~~
Improves visibility of prompts such as bash and zsh. It seems that it was made to look like Powerline, but it seems that there is no other relationship. I haven't used vim so much, so I will use it this time.
$ pip3 install powerline-shell
Add the following script to .bashrc
.bashrc
function _update_ps1() {
PS1=$(powerline-shell $?)
}
if [[ $TERM != linux && ! $PROMPT_COMMAND =~ _update_ps1 ]]; then
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi
Now when you restart the terminal it will be reflected like this
The customization method is also described in the README of Powerline-shell.
Qiita's first post, so if you point out, it would be helpful
Recommended Posts