From e5e786e6a9c17a0ed8da77555509511a4d8b3c0e Mon Sep 17 00:00:00 2001 From: Raphael Naswaty Date: Fri, 21 Feb 2014 18:18:09 -0300 Subject: [PATCH] Added instructions for the alias command Created the alias.md file, containing some examples of the use of aliases. Hope you like. --- common/alias.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 common/alias.md diff --git a/common/alias.md b/common/alias.md new file mode 100644 index 0000000000..48e87cda72 --- /dev/null +++ b/common/alias.md @@ -0,0 +1,26 @@ +# alias + +> Creates an alias for a word when used +> as the first word of a command + +- creating a generic alias + +`alias {{word}}="{{command}}"` + +- remove an aliased command + +`unalias {{word}}` + +- full list of aliased words + +`alias -p` + +> Some usefull alias commands + +- turning rm an interative command + +`alias {{rm}}="{{rm -i}}"` + +- overriding la as ls -a + +`alias {{la}}="{{ls -a}}"` \ No newline at end of file