mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-04 16:55:34 +02:00
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:
parent
3df8a4b380
commit
b5f522803a
1 changed files with 4 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue