Hacker News new | ask | show | jobs
by a3n 3991 days 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."