On Sun, 25 Nov 2001, Paul Lussier <[EMAIL PROTECTED]> wrote:
>
> 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 :)
Typing extra characters interferes with one's concentration
for example, "ll" vs. "ls -lF | more"
I find it hard to buy any argument that says it is a bad idea for people
to make abbreviations for things they type 10's or 100's of times a day.
Try not to think about the generally bad practice of using an alias for
*refining* a common command like rm -> rm -i via an alias. Something
like rmi -> rm -i is better.
> This would indicate to me that either, your path names are just too
> long, or, you'd be better off using symbolic links instead.
Or I just have too many projects, organize them into a directory tree,
and don't want a bunch of goto's in my home directory :-)
> >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.
Well, don't do something that will mess you up :-) Aliases are
personal customizations that should reflect and speed up the things one
does. I have used that 'ls -F' alias 100's of times per day for the
last 16 years and haven't gotten messed up by it. When I type
something long like your above example into the command line (much less
often than I type "ls") I use the \ls trick you mentioned or /bin/ls.
I do not recommend redefining things via aliases. cd and ls are my two
personal transgressions. (I alias cd to set the window manager title
to pwd in xterm)
> >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.
I look at it as 47 characters less to type, and I type these commands
10's or 100's of times a day!
Karl
*****************************************************************
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*****************************************************************