Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 0.17 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. if [ -n $PS1 ] # no prompt?
  2. then
  3.     # Interactive terminal
  4.  
  5.     # Set up a cooooool terminal
  6.     PS1="[blah \t \h:\w] "
  7. fi
  8.  
  9.  
  10. ## Error:
  11.  
  12. -bash: [: too many arguments