Shell how configure command to always work with some params?

Posted by Gabriel L. Oliveira on Stack Overflow See other posts from Stack Overflow or by Gabriel L. Oliveira
Published on 2010-05-21T00:41:19Z Indexed on 2010/05/21 0:50 UTC
Read the original article Hit count: 313

Filed under:
|
|
|

Hi. I want to know how to configure your environment to execute some command with specific params everytime you use it. So, if I have a command named:

spec

I want to know where I configure my bash to always use:

spec -c --format nested

instead of just 'spec'

I tried to put this like an alias on my .bashrc file, like:

alias spec='spec -c --format pretty'

but didn't work. Any tip?

© Stack Overflow or respective owner

Related posts about shell

Related posts about command