Last active
October 5, 2018 19:01
-
-
Save lackdaz/fa5a130f40f2b6852f96a985d4a6806d to your computer and use it in GitHub Desktop.
an alias to parse your .aliases file (or .bashrc, .profile) for aliases and their documentation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias alias-ls='cat ~/.aliases | grep -i "^alias" | grep -v "#{3}" | awk -F"[ =]" '\''{print $2 "\t" substr($0, index($0, "#") + 1)}'\''' # List Aliases |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
.aliasesin your home directory (or change the gist accordingly)source ~/.aliases(or your own filepath)alias ssh-pi='ssh pi@192.168.1.255' # ssh into your raspberry pialias-lsand it should show all of your aliases and their corresponding description/action