mirror of https://github.com/CrimsonTome/tldr.git
alias: various tweaks (#1135)
- add a caveat to the main description about an aliases not being permanently saved - tweak the descriptions of some exampleswaldyrious/alt-syntax
parent
3df8a4b380
commit
b5f522803a
|
@ -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}}"`
|
||||||
|
|
Loading…
Reference in New Issue