Is there a way to list all aliases, something like:
$ ls-aliases
.. "cd .."
la "ls -Gla"
gs "git stash"
etc...
Also is it possible to add human readable descriptions to aliases ?
I'm on a MacOSX
Is there a way to list all aliases, something like:
$ ls-aliases
.. "cd .."
la "ls -Gla"
gs "git stash"
etc...
Also is it possible to add human readable descriptions to aliases ?
I'm on a MacOSX
In
bash
:To list all aliases:
To add a comment, just put it at the end of the command, e.g.:
Fish:
You can add your own fish function to list aliases like so:
Then save it
And call it
Example output:
Note that in fish the
alias
command creates a function using the alias name that wraps the alias value. So there isn't currently any way to list just "aliases". You can use thefunctions
command to list the names of all the defined functions (which by definition includes aliases). If you want the names one per line justfunctions | cat
.