How do you create a bash alias for a command with flags?
For example, if I run
ls -l, I want that to alias to
This doesn't work:
alias "ls -l"="ls -a"
Another example: If I type
reboot now, I want that to simply run
Would bash functions be useful here?
EDIT: Sorry for the silly
ls -l example. This is what I really want: if you executed
reboot now, I want it to actually execute
reboot. This is why.