mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-07 13:25:59 +02:00
alias: add list all aliases (#3019)
This commit is contained in:
parent
00eb38b527
commit
5e876b3a9d
1 changed files with 4 additions and 4 deletions
|
@ -3,6 +3,10 @@
|
||||||
> Creates aliases -- words that are replaced by a command string.
|
> Creates aliases -- words that are replaced by a command string.
|
||||||
> Aliases expire with the current shell session, unless they're defined in the shell's configuration file, e.g. `~/.bashrc`.
|
> Aliases expire with the current shell session, unless they're defined in the shell's configuration file, e.g. `~/.bashrc`.
|
||||||
|
|
||||||
|
- List all aliases:
|
||||||
|
|
||||||
|
`alias`
|
||||||
|
|
||||||
- Create a generic alias:
|
- Create a generic alias:
|
||||||
|
|
||||||
`alias {{word}}="{{command}}"`
|
`alias {{word}}="{{command}}"`
|
||||||
|
@ -15,10 +19,6 @@
|
||||||
|
|
||||||
`unalias {{word}}`
|
`unalias {{word}}`
|
||||||
|
|
||||||
- List all aliased words:
|
|
||||||
|
|
||||||
`alias -p`
|
|
||||||
|
|
||||||
- Turn `rm` into an interactive command:
|
- Turn `rm` into an interactive command:
|
||||||
|
|
||||||
`alias {{rm}}="{{rm -i}}"`
|
`alias {{rm}}="{{rm -i}}"`
|
||||||
|
|
Loading…
Add table
Reference in a new issue