alias: various tweaks (#1135)
- add a caveat to the main description about an aliases not being permanently saved - tweak the descriptions of some examples
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
# alias
|
# alias
|
||||||
|
|
||||||
> Creates an alias for a word when used as the first word of a command.
|
> 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:
|
- Create a generic alias:
|
||||||
|
|
||||||
@@ -10,14 +11,14 @@
|
|||||||
|
|
||||||
`unalias {{word}}`
|
`unalias {{word}}`
|
||||||
|
|
||||||
- Full list of aliased words:
|
- List all aliased words:
|
||||||
|
|
||||||
`alias -p`
|
`alias -p`
|
||||||
|
|
||||||
- Turn rm an interative command:
|
- Turn rm into an interactive command:
|
||||||
|
|
||||||
`alias {{rm}}="{{rm -i}}"`
|
`alias {{rm}}="{{rm -i}}"`
|
||||||
|
|
||||||
- Override la as ls -a:
|
- Create `la` as a shortcut for `ls -a`:
|
||||||
|
|
||||||
`alias {{la}}="{{ls -a}}"`
|
`alias {{la}}="{{ls -a}}"`
|
||||||
|
Reference in New Issue
Block a user