Quoting Carlos Mennens on 2010-08-04 11:40:33, in Message-Id <aanlktik7qpfj3dr00ljdj6pp0ntjdgg5lxwwm3zmw...@mail.gmail.com>
Sorry to necro the thread; was reading through my archives and found this message just now :) > How can I force Debian to use a custom colored PS1 I have defined > under /root/.bashrc for all new users I create with 'useradd' or > 'adduser'? In /etc/profile: # ---- cut here ---- [ $BASH ] && . /etc/bash.bashrc PS1='foo $ ' # ---- cut here ---- With this method you can set PS1 to be compatible with POSIX-compliant shells, but if the user happens to choose bash you've got the full range of bash options available. The bash version is in /etc/bash.bashrc Note that I have only tested this with [db]ash, not {c,k,pdk}sh. -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ UIN: 43190205 | Mail/MSN/Jabber: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ "The most powerful optimization tool . . . may be the Delete key." -- Eric Raymond
signature.asc
Description: Digital signature