2 ms·
> alias alis='cat ~/.bash_aliases' That only lists what's in .bash_aliases, along with any comments. Why not just run alias without arguments? It lists all ac
by a3n 11y ago
> alias alis='cat ~/.bash_aliases'
That only lists what's in .bash_aliases, along with any comments.
Why not just run alias without arguments? It lists all active aliases, however and whenever they were defined.
$ man bash
/^SHELL BUILTIN COMMANDS
...
alias [-p] [name[=value] ...]
"Alias with no arguments or with the -p option prints the list of aliases in the form alias name=value on standard output."