Re: tcsh

From: Ulf Zimmermann (ulf_at_Alameda.net)
Date: 04/29/05

  • Next message: Ruslan Ermilov: "Re: [current tinderbox] failure on i386/pc98"
    Date: Thu, 28 Apr 2005 21:13:24 -0700
    To: "M. Warner Losh" <imp@bsdimp.com>
    
    

    On Thu, Apr 28, 2005 at 09:28:03PM -0600, M. Warner Losh wrote:
    > In message: <42719BA0.5030901@samsco.org>
    > Scott Long <scottl@samsco.org> writes:
    > : Why does 'cd' have to be aliased?
    >
    > It doesn't. In historical csh implementations (eg, sunos 4, 4.2 or
    > 4.3 BSD) needed to alias cd to get the prompt set, but tcsh has indeed
    > obviated that need, with all the benefits that you describe.
    >
    > Warner

    I got two standard settings for tcsh:

    Depended on the TERM set:

       alias precmd 'echo -n "^[]2;$HOST^G"'

    And prompt:

    set prompt = '%B%m%b %n %C3 %# '

    I do put the user in because of using more then myself and root.

    -- 
    Regards, Ulf.
    ---------------------------------------------------------------------
    Ulf Zimmermann, 1525 Pacific Ave., Alameda, CA-94501, #: 510-865-0204
    You can find my resume at: http://seven.Alameda.net/~ulf/resume.html
    _______________________________________________
    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: Ruslan Ermilov: "Re: [current tinderbox] failure on i386/pc98"

    Relevant Pages

    • Re: tcsh
      ... BSD) needed to alias cd to get the prompt set, but tcsh has indeed ...
      (freebsd-current)
    • Re: alias in tcsh
      ... > The deafault shell we're working in is ksh. ... In .profile, I set it to ... > tcsh that I am so used to and dearly love, and in the next line try to ... So it rejects the alias syntax. ...
      (comp.unix.shell)
    • alias in tcsh
      ... I am trying to set a simple alias in my .profile ... The deafault shell we're working in is ksh. ... tcsh that I am so used to and dearly love, and in the next line try to ...
      (comp.unix.shell)
    • Why is this not working?
      ... I am trying to create a script which would look like the which command ... as I have created an alias for touch). ... tcsh and return the result to standard input. ...
      (comp.unix.questions)
    • Re: [FC3] where is which??
      ... That is because which package will add an alias to every user (see ... binary attempts to emulate which built-in command found in csh and tcsh. ... functionality as found in csh and tcsh, use bourne shell equivalent: ...
      (Fedora)