[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: many thanks to all



Martin-Eric Racine <q-funk@megacom.net> writes:

|> You also need to define the following in /etc/profile or /etc/bashrc:

|>    TTY=`tty | cut -d / -f 3`

This can be replaced with the following, which is more efficient:

TTY=$(tty)
TTY=${TTY##*/}

|> However, the following prompt string didn't work:

|>    PS1="\[$(tput bold)\] $HOSTNAME:$PWD$ \[$(tput sgr0)\]"

|> Apparently, (tput bold) isn't recognized by the BASH version included
|> with KGMD...

tput has nothing to do with the shell.  It's a separate program.  The
ncurses package has it, for example.

-- 
Andreas Schwab                                      "And now for something
schwab@issan.informatik.uni-dortmund.de              completely different"
schwab@gnu.org