In a message dated: Sun, 25 Nov 2001 09:42:50 PST
"Karl J. Runge" said:

>I have a lot of aliases, they are a good thing IMHO.  I work at the shell
>cmd line a lot. 

I pretty much live in the command line, so I'm not sure what that has 
to do with anything.  Of course, your personal preferences need not 
be compatible with mine :)

>% alias | wc -l
>    124
>
>many of them are aliases like "cdfoo" that cd to the down to the
>directory of my "foo" project, etc.

This would indicate to me that either, your path names are just too 
long, or, you'd be better off using symbolic links instead.

>FWIW, here are my ls related aliases, not all of them were mentioned earlier
>by others:
>
>ls      ls -F                  # -F puts the visual clue trailing character

This would completely mess up things like:

        $ for i in `ls /some/long/path`
        > do
        >  cp $i ${i}.bak
        >  cp /some/long/path/$i .
        > done

since now there would be special characters at the end of each 
filename which I wouldn't necessarilly want.  Note also, this isn't a 
shell script in the normal sense of the term, but rather a command-line program
which isn't stored in the file.  I do things like this *all* the 
time, and the aliases *are* expanded here.

>ll      ls -lF | more          # long listing
>lsa     ls -aF                 # list the "." files too
>lss     ls -lSF | more         # list by size
>lst     ls -ltF | more         # list by modification time
>lsr     ls -lRF | more         # recurse directories

I look at this as 5 new commands I now need to remember rather than 1 
command and a couple different options.

Just my $.02 :)


*****************************************************************
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*****************************************************************

Reply via email to