mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-07 01:45:59 +02:00
Added instructions for the alias command
Created the alias.md file, containing some examples of the use of aliases. Hope you like.
This commit is contained in:
parent
a6c0586382
commit
e5e786e6a9
1 changed files with 26 additions and 0 deletions
26
common/alias.md
Normal file
26
common/alias.md
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
# alias
|
||||||
|
|
||||||
|
> Creates an alias for a word when used
|
||||||
|
> as the first word of a command
|
||||||
|
|
||||||
|
- creating a generic alias
|
||||||
|
|
||||||
|
`alias {{word}}="{{command}}"`
|
||||||
|
|
||||||
|
- remove an aliased command
|
||||||
|
|
||||||
|
`unalias {{word}}`
|
||||||
|
|
||||||
|
- full list of aliased words
|
||||||
|
|
||||||
|
`alias -p`
|
||||||
|
|
||||||
|
> Some usefull alias commands
|
||||||
|
|
||||||
|
- turning rm an interative command
|
||||||
|
|
||||||
|
`alias {{rm}}="{{rm -i}}"`
|
||||||
|
|
||||||
|
- overriding la as ls -a
|
||||||
|
|
||||||
|
`alias {{la}}="{{ls -a}}"`
|
Loading…
Add table
Reference in a new issue