Shell

Brandon helsley brandon.helsley at hotmail.com
Thu Jul 2 16:53:25 UTC 2020


 
 
 
 
>This was definitely not my impression of the OP's *problem* - in
 
particular, the first message
 
 https://lists.freebsd.org/pipermail/freebsd-questions/2020-June/290424.html
 
says "When I am logged in as root it is #, even when I do not execute
 
a shell. Usually it was root at machine17#. How do I change it back?",
 
and
 
 https://lists.freebsd.org/pipermail/freebsd-questions/2020-June/290428.html
 
says "I don't want to change the prompt for the usr, just for the csh
 
shell for root".
 

 
--Per
 
 

 

 
Thank you all for the help. I think I was not specific enough with my problem. I now know how to change the prompt to what I want but still have to issue the command "pwd" to see what directory I'm in. For example, when I cd to the /usr/home/ directory my prompt is still only root at machine17# instead of root at machine17#~/usr/home/
 

 

 

 
 
 
 
 
>  
> On Jun 30, 2020 at 7:21 AM, Per Hedeland  <per at hedeland.org>  wrote:
>  
>  
>  On 2020-06-30 14:39, Polytropon wrote:  >  On Tue, 30 Jun 2020 13:27:58 +0200, Per Hedeland wrote:  >>  On 2020-06-30 11:43, Steve O'Hara-Smith wrote:  >>>  On Tue, 30 Jun 2020 14:44:34 +0530  >>>  Manish Jain  <bourne.identity at hotmail.com>  wrote:  >>>   >>>>  It is often unnoticed that FreeBSD has a mirror of the root user  >>>>  appropriately named toor (whose shell can be anything).  >>>   >>>  Traditionally root ran /bin/csh and toor ran /bin/sh to keep both  >>>  BSD and AT&T trained sysadmins happy, it really doesn't matter what login  >>>  shell root uses at work we use zsh, at home I use bash but you could even  >>>  use mc or vshnu.  >>>   >>>  However the OP was concerned about the prompt (which many people  >>>  have correctly said involves setting PS1) rather than the shell.  >>   >>  Yes, PS1 is what to set for /bin/sh and its relatives (e.g. bash,  >>  zsh), but it has no effect for csh/tcsh - there you need to set  >>  'prompt' (and the "formatting sequences" are a
lso different). And it  >>  seems the OP was primarily interested in root's prompt (i.e. csh by  >>  default).  >   >  The first message says that the prompt character is $, which would  >  not be the case (per default) if the C shell was chosen; so the  >  case probably is related to "shell changed from C shell to sh",  >  rather than "the dog ate my configuration files". ;-) This was definitely not my impression of the OP's *problem* - in particular, the first message  https://lists.freebsd.org/pipermail/freebsd-questions/2020-June/290424.html  says "When I am logged in as root it is #, even when I do not execute a shell. Usually it was root at machine17#. How do I change it back?", and  https://lists.freebsd.org/pipermail/freebsd-questions/2020-June/290428.html  says "I don't want to change the prompt for the usr, just for the csh shell for root". --Per _______________________________________________ freebsd-questions at freebsd.org  mailing list  https://lists.freebsd.org/mailman/listi
nfo/freebsd-questions  To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org" 
>  
     


More information about the freebsd-questions mailing list