Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • I use '#' (comment marker) at the beginning of the 2-line prompt (when using X; space is at premium on console). That way even if you copy the whole thing, one can still edit the lines before executing. (BTW, vi-mode in zsh is really excellent, much better than ksh93 or bash3.)

    - parv
  • \n\[\033[45m\]\u@\h${debian_chroot:+ \[\033[0m\]($debian_chroot)\[\033[45m\]}: \[\033[49m\]\[\033[31m\]\w\n\[\033[0m\]\[\033[45m\]#\[\033[0m\]\t \[\033[45m\]$\[\033[0m\]

  • I use color on my .psqlrc on production machines, in particular, the red color, to remember to think twice before "TRUNCATE"-ing tables or deleting stuff... :-)

    \set PROMPT1 '%[%033[1;31;40m%]%n::%/@%`hostname -s` %x%R%[%033[0m\n%#%]'
    \set PROMPT2 '... %#%] '