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

Re: Setting Prompt



On Tue, Jan 12, 1999 at 09:01:53PM +0000, ktb wrote:
>     OK, I did a search in Debian user's and came up with the the
> following to change my prompt:
> 
> In   /etc/profile  I added the line,
> export PS1='\h:\w\$ '
> 
> This is the readout I got,
> crossyourfingers:~$
> 
> This wasn't what I wanted I only want the current working directory to
> show.  I took a look at the man page for  bash.  It said that "\w" would
> list my working directory.  So I tried the following:
> 
> If I use,
> export PS1='\w:\\$ '
> 
> I get,
> ~:$
> 


~ is your home directory. try cd'ing to /usr/share with that prompt.



> I tried several other combinations, a few I tried,
> \w\
> \w:\w\
> 
> None of these worked.
> 
> Here is what my  /etc/profile  looks like:
> 
> ~:$ cat /etc/profile
> # /etc/profile: system-wide .profile file for bash(1).
> 
> PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/local/netscape:/usr/X11R6/bin:/home/kent"
> 
> 
> 
> export PATH PS1
> export PS1='\w:\\$ '
> setleds -D +num$
> 
> umask 002
> /usr/bin/check-sendfile
> 
> 
> What am I doing wrong here?  I just want my prompt, as a regular user,
> to look something like this:
> /home/kent $
> As root my prompt has the working directory listed.  Where is the file
> for the root prompt?  Maybe I could just look there and figure out how
> to set my regular user prompt?
> Thanks,
> Kent
> 
> 
> 
> 
> 
> 
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
> 

-- 
Jim Foltz <aa204@acorn.net>
AOL/IM: jim foltz


Reply to: