Guest User

Untitled

a guest
Apr 20th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. if [ -f ~/.bashrc ]; then
  2. source ~/.bashrc
  3. fi
  4.  
  5. function _update_ps1() {
  6. PS1=$(powerline-shell $?)
  7. }
  8.  
  9. if [[ $TERM != linux && ! $PROMPT_COMMAND =~ _update_ps1 ]]; then
  10. PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
  11. fi
Add Comment
Please, Sign In to add comment