Re: Default Flags for system commands

From: Chris F.A. Johnson (cfajohnson_at_gmail.com)
Date: 07/27/05

  • Next message: Chris F.A. Johnson: "Re: Default Flags for system commands"
    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>
    

  • Next message: Chris F.A. Johnson: "Re: Default Flags for system commands"

    Relevant Pages

    • Re: windows xp crashes when I install sp2
      ... > Thanks, I'm convinced that sp2 is what I should do, but for me to ... > tackle your list would require me to quit my job for a few months. ... dozens of applications. ... As for Linux - if you think it would take you quitting your job to do what i ...
      (microsoft.public.windowsxp.newusers)
    • Re: Hacked....
      ... > QUIT YOUR WHINING! ... Linux is the most secure OS in the entire WORLD. ...
      (comp.os.linux.misc)
    • Re: Ansi escape codes for xterm text buffers?
      ... them) which allow the multiple text buffers in some xterms. ... vim in Linux when you quit it returns to the same screen with all the ...
      (comp.unix.programmer)
    • Default Flags for system commands
      ... but I thought I remembered seeing something a ... while back about some way of defining default flags for various system ... commads. ...
      (alt.linux)
    • Re: Finally quit
      ... Congrats on starting your quit Brian. ... I want to wish you all the best in your quit. ... > Can't seem to paste my meter though. ... Since I switched to linux the version ...
      (alt.support.stop-smoking)