Re: tcsh

From: /dev/null (null_at_dnswatch.com)
Date: 04/29/05

  • Next message: /dev/null: "Re: boot banner project"
    Date: Fri, 29 Apr 2005 01:19:51 -0700 (PDT)
    To: "Chuck Robey" <chuckr@chuckr.org>, freebsd-current@freebsd.org
    
    

    > The first thing I do, after I've installed a new system (just before I
    > copy over the ssh data) is to copy my .cshrc to my home dir. What's so
    > important? I really like the two statements, which I show below, which
    > give me my prompt:
    >
    > set prompt="%m:%{^[[34m%}`id -nu`%{^[[0m%}:%~:%{^[[31m#%h^[[0m%}%#"
    > alias cd 'cd \!*;set prompt="%m%{^[[32m%}:`id
    > -nu`%{^[[0m%}:%~:%{^[[31m#%h^[[0m%}%#"'
    >

    FWIW here's mine:
    set prompt = "\n%~\n%t\n%d, %D `/bin/hostname -s`# "
    Short and sweet. As you can see it leaves little doubt as to where I am or
    what day and time it is.

    -Chris

    > My mailer is adding carriage returns to the cd line, maybe even to the
    > prompt line, live with it.
    >
    > Any chance that something so basic as this, that improves things so
    > awfully much, could be added to the .tcshrc? If the idea is liked well
    > enough, I will edit it enough so that the special use of prompt strings
    > that are specific to tcsh is made conditional.
    > _______________________________________________
    > freebsd-current@freebsd.org mailing list
    > http://lists.freebsd.org/mailman/listinfo/freebsd-current
    > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
    >
    ////////////////////////////////////////////////////
     If only Western Electric had found a way to offer
    binary licenses for the UNIX system back in 1974,
    the UNIX system would be running on all PC's today
    rather than DOS/Windows.
    ////////////////////////////////////////////////////
    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"


  • Next message: /dev/null: "Re: boot banner project"

    Relevant Pages

    • tcsh
      ... copy over the ssh data) is to copy my .cshrc to my home dir. What's so ... prompt line, live with it. ... I will edit it enough so that the special use of prompt strings ...
      (freebsd-current)
    • Re: "which" bug or feature?
      ... if ($?prompt) then ... and therefore .cshrc should not be printing out anything in that case. ...
      (comp.unix.solaris)
    • Re: set prompt error under csh (with .cshrc)
      ... >>setenv PAGER more ... >>setenv BLOCKSIZE K ... My .cshrc file is the same!!!! ... So what I did was try set prompt right there at the command line. ...
      (comp.unix.bsd.freebsd.misc)
    • Re: tcsh
      ... Chuck Robey wrote: ... > copy over the ssh data) is to copy my .cshrc to my home dir. What's so ... > prompt line, live with it. ... I will edit it enough so that the special use of prompt strings ...
      (freebsd-current)
    • Change promt
      ... How do I set my .cshrc to change the prompt to the current folder? ... Mahurshi Akilla ...
      (comp.unix.shell)