README.md 558 Bytes
Newer Older
1
## Magic Enter plugin
Shadab Zafar's avatar
Shadab Zafar committed
2

3
This plugin makes your enter key magical, by binding commonly used commands to it.
Shadab Zafar's avatar
Shadab Zafar committed
4

5
6
7
To use it, add `magic-enter` to the plugins array in your zshrc file. You can set the
commands to be run in your .zshrc, before the line containing plugins. If no command
is specified in a git directory, `git status` is executed; in other directories, `ls`.
Shadab Zafar's avatar
Shadab Zafar committed
8

9
10
```zsh
# defaults
Shadab Zafar's avatar
Shadab Zafar committed
11
12
13
MAGIC_ENTER_GIT_COMMAND='git status -u .'
MAGIC_ENTER_OTHER_COMMAND='ls -lh .'

14
plugins=(... magic-enter)
Shadab Zafar's avatar
Shadab Zafar committed
15
```
16
17

**Maintainer:** [@dufferzafar](https://github.com/dufferzafar)