Re: Default Flags for system commands
From: Chris F.A. Johnson (cfajohnson_at_gmail.com)
Date: 07/27/05
- Previous message: Dave Uhring: "Re: Default Flags for system commands"
- In reply to: bmearns: "Default Flags for system commands"
- Next in thread: Enkidu: "Re: Default Flags for system commands"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 26 Jul 2005 23:41:27 -0400
On 2005-07-27, bmearns wrote:
> I'm quit new to linux, but I thought I remembered seeing something a
> while back about some way of defining default flags for various system
> commads.
>
> What I'm aiming for is to be able to set it up so that executing
> $ ls
>
> by default runs
> $ ls --color -F
>
> but with the same theory applied to a bunchh of commands.
Put functions that redfine the commands in your .bashrc or
.bash_profile:
ls() {
command ls --color -F "$@"
}
--
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>
- Previous message: Dave Uhring: "Re: Default Flags for system commands"
- In reply to: bmearns: "Default Flags for system commands"
- Next in thread: Enkidu: "Re: Default Flags for system commands"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|