delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/06/07/14:35:04

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3EE23039.9030706@rbcmail.ru>
Date: Sat, 07 Jun 2003 14:34:33 -0400
From: Constantine <cnst AT rbcmail DOT ru>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.4) Gecko/20030529
X-Accept-Language: en-gb, ru, en-us, en
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
CC: elfyn AT is DOT ubertales DOT co DOT uk
Subject: Re: ll, la and h [closed]
References: <3EE1689D DOT 20507 AT rbcmail DOT ru> <Pine DOT CYG DOT 4 DOT 55 DOT 0306070528140 DOT 1400 AT ellixia>
In-Reply-To: <Pine.CYG.4.55.0306070528140.1400@ellixia>

Elfyn McBratney wrote:

>On Sat, 7 Jun 2003, Constantine wrote:
>
>  
>
>>Hello!
>>
>>I am a FreeBSD user. I always get an error on cygwins' bash shell that
>>there are no such commands as ll, la and h. How can I add aliases to
>>these commands to the standard bash shell under cygwin? I have tried to
>>copy .cshrc and .shrc from FreeBSD ~ to cygwin ~, and restarting the
>>shell, but it does not seem to help, does it?
>>    
>>
>
>If you stick something like
>
>  [elfyn AT ellixia libxslt-1.0.27-1]$ cat ~/.rc/aliases
>  # ~/.rc/aliases: Shell Aliases
>  #
>  #   This file contains Bash shell aliases for programs
>  #   and scripts.
>
>  # Directory listings
>  alias ls='/bin/ls --color=tty'
>  alias la='/bin/ls -a --color=tty'
>  alias ll='/bin/ls -l --color=tty'
>  alias lal='/bin/ls -al --color=tty'
>  [...]
>
>this in your `~/.bash_profile' file (or add them globaly in a script in
>`/etc/profile.d') you'll have you ls aliases. I don't know what h is an alias
>for, though. `head' perhaps? Anyhow, that should be enough to get you your
>aliases.
>
>IIRC, your shell (bash) will have to be a login shell for `~/.bash_profile' to
>be sourced.
>
>Elfyn
>

Thank you very much indeed!
h stands for history. :-)

Cheers,
Constantine.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019