newbie PS1 config question
Alexander Dalloz
alexander.dalloz at uni-bielefeld.de
Sun Jan 25 17:51:13 UTC 2004
Am So, den 25.01.2004 schrieb Ko Pu um 18:41:
> PS1 question:
> How can I change the PS to display the current directory? According to
> documentation, the \w should show the current directory, but when I used it,
> it showed ~, what I'm looking for is to display info similar to pwd.
~ means home directory. If you want to have pwd output so just use it.
Read for detailed instructions the bash prompt howto:
http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/
> prompt question:
> I'm using dsl modem, so the ip address is dynamic, and the prompt showed the
> ip address, how can I change it to my computer name? I added it to my
> /etc/host but I still got the ip address. This is what I have in my prompt.
> [kpu at d209-121-129-174 Linux]$
Edit /etc/sysconfig/network -> HOSTNAME
> Thanks in advance for your comment/suggestion
>
> Ko Fei Pu
> mailto:ko_pu at nospamhotmail.com
Alexander
--
Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13
Fedora GNU/Linux Core 1 (Yarrow) on Athlon CPU kernel 2.4.22-1.2149.nptl
Sirendipity 18:47:57 up 1 day, 2:26, load average: 0.35, 0.15, 0.16
[ Γνωθι σ'αυτον - gnothi seauton ]
More information about the fedora-list
mailing list