mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
25 lines
531 B
Markdown
25 lines
531 B
Markdown
# expand-aliases
|
|
|
|
**Maintainer:** [Jarmo Pertman](https://github.com/jarmo)
|
|
|
|
This plugin expands aliases while typing them in terminal.
|
|
|
|
For example:
|
|
```zsh
|
|
alias foo="bar baz"
|
|
|
|
$ foo
|
|
# pressing space will expand that alias to... surprise, surprise
|
|
$ bar baz
|
|
```
|
|
|
|
To **skip** expansion, use `control-space` instead of just `space`.
|
|
|
|
## Installation
|
|
|
|
Just add it to `oh-my-zsh` plugins list in `~/.zshrc`, but make sure it is added last (or not
|
|
last if you prefer some aliases not to be expanded).
|
|
|
|
`
|
|
plugins=(... expand-aliases)
|
|
`
|