code_junkie

Bash prompt in OS X terminal broken

Nov 11th, 2011
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. PS1="${BLUE}u${CYAN}@${RED}h${BLUE}wn[${red}$${NC}]"
  2.  
  3. function _my_prompt ()
  4. {
  5. # magic goes here
  6. my_prmpt=....
  7. }
  8. PROMPT_COMMAND='_my_prompt'
  9. PS1="[$my_prmpt] $"
  10.  
  11. PS1="${BLUE}u${CYAN}@${RED}h${BLUE}wn${red}$${NC}"
  12.  
  13. PS1="${BLUE}u${CYAN}@${RED}h${BLUE}w${RED}rn$[${blue}]"
Add Comment
Please, Sign In to add comment