[juneau-lug] Re: aliases

  • From: Mark Neyhart <Mark_Neyhart@xxxxxxxxxxxxxxxxx>
  • To: "juneau-lug@xxxxxxxxxxxxx" <juneau-lug@xxxxxxxxxxxxx>
  • Date: Wed, 24 Nov 2010 10:07:43 -0900

Or you could build a couple of short scripts in a pathed directory.
It all depends on whether you prefer aliases to scripts.

$cat nf
#!/bin/sh
ls -lt $1 | head

$cat df
#!/bin/sh
ls -lS $1 | head

James Zuelow wrote:
>> ==========================================
>> # some more ls aliases
>> alias ll='ls -l'
>> alias la='ls -A'
>> alias l='ls -CF'
>>
>> function nf {
>>         ls -lt $1 | more
>> }
>>
>> function bf {
>>         ls -lS $1 | more
>> }
>> ===========================================
>>
>> Change your aliases to functions in your .bashrc, source the file ( .
>> .bashrc ) and nf /tmp should work. 
>>
------------------------------------
The Juneau Linux Users Group -- http://www.juneau-lug.org
This is the Juneau-LUG mailing list.
To unsubscribe, send an e-mail to juneau-lug-request@xxxxxxxxxxxxx with the 
word unsubscribe in the subject header.

Other related posts: