Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if [ -f ~/.bashrc ]; then
- source ~/.bashrc
- fi
- function _update_ps1() {
- PS1=$(powerline-shell $?)
- }
- if [[ $TERM != linux && ! $PROMPT_COMMAND =~ _update_ps1 ]]; then
- PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
- fi
Add Comment
Please, Sign In to add comment