From b5f522803a2605f9a8fc85805848454c505ac756 Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Sat, 29 Oct 2016 16:03:11 +0100 Subject: [PATCH] alias: various tweaks (#1135) - add a caveat to the main description about an aliases not being permanently saved - tweak the descriptions of some examples --- pages/common/alias.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pages/common/alias.md b/pages/common/alias.md index dfd0511e89..9296093faa 100644 --- a/pages/common/alias.md +++ b/pages/common/alias.md @@ -1,6 +1,7 @@ # alias > Creates an alias for a word when used as the first word of a command. +> Note that these operations are not permanent, expiring when the current shell session ends. - Create a generic alias: @@ -10,14 +11,14 @@ `unalias {{word}}` -- Full list of aliased words: +- List all aliased words: `alias -p` -- Turn rm an interative command: +- Turn rm into an interactive command: `alias {{rm}}="{{rm -i}}"` -- Override la as ls -a: +- Create `la` as a shortcut for `ls -a`: `alias {{la}}="{{ls -a}}"`