Bash alias does not directly accept parameters. You will have to create a function and alias that.
alias does not accept parameters but a function can be called just like an alias.
For example:
myfunction() {
#do things with parameters like $1 such as
mv "$1" "$1.bak"
cp "$2" "$1"
}myFunction xyz #calls
myfunction
By the way, Bash functions defined in your .bashrc and other files are available as commands within your shell. So for instance you can call the earlier function like this
$ myfunction original.conf my.conf
Comment utiliser les alias pour gérer le cas des père / mère.
Merci pour l'astuce et pour l'alias :)
export PAGER="less -r"
alias fromage="yaourt --color --pager"
j'aime le fromage :x