alias: various tweaks (#1135)

- add a caveat to the main description about an aliases not being permanently saved
- tweak the descriptions of some examples
waldyrious/alt-syntax
Waldir Pimenta 2016-10-29 16:03:11 +01:00 committed by GitHub
parent 3df8a4b380
commit b5f522803a
1 changed files with 4 additions and 3 deletions

View File

@ -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}}"`