Re: Default Flags for system commands
From: Chris F.A. Johnson (cfajohnson_at_gmail.com)
Date: 07/27/05
- Next message: rick: "Re: Newbie help, please? (FATAL error from Knoppix 3.9)"
- Previous message: Chris F.A. Johnson: "Re: Default Flags for system commands"
- In reply to: Dave Uhring: "Re: Default Flags for system commands"
- Next in thread: Dave Uhring: "Re: Default Flags for system commands"
- Reply: Dave Uhring: "Re: Default Flags for system commands"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 27 Jul 2005 00:01:16 -0400
On 2005-07-27, Dave Uhring wrote:
> On Tue, 26 Jul 2005 20:20:16 -0700, bmearns wrote:
>
>> What I'm aiming for is to be able to set it up so that executing
>> $ ls
>>
>> by default runs
>> $ ls --color -F
>
> Add the following line to your /home/bmearns/.bash_profile file:
>
> alias ls=ls --color -F
bash: alias: --color: not found
bash: alias: -F: not found
I think you mean:
alias ls='ls --color -F'
But, to quote the bash man page, "For almost every purpose,
aliases are superseded by shell functions."
--
Chris F.A. Johnson <http://cfaj.freeshell.org>
==================================================================
Shell Scripting Recipes: A Problem-Solution Approach, 2005, Apress
<http://www.torfree.net/~chris/books/cfaj/ssr.html>
- Next message: rick: "Re: Newbie help, please? (FATAL error from Knoppix 3.9)"
- Previous message: Chris F.A. Johnson: "Re: Default Flags for system commands"
- In reply to: Dave Uhring: "Re: Default Flags for system commands"
- Next in thread: Dave Uhring: "Re: Default Flags for system commands"
- Reply: Dave Uhring: "Re: Default Flags for system commands"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]