Adding plugin for zsh (#117)
* Adding plugin for zsh * plugin manager documentation
This commit is contained in:
parent
fd90bd3413
commit
f041d7fe4a
2 changed files with 11 additions and 0 deletions
|
@ -131,6 +131,12 @@ the install script, this should all be done for you!
|
|||
echo 'eval "$(atuin init zsh)"' >> ~/.zshrc
|
||||
```
|
||||
|
||||
Or using a plugin manager:
|
||||
|
||||
```
|
||||
zinit load ellie/atuin
|
||||
```
|
||||
|
||||
### bash
|
||||
|
||||
We need to setup some hooks, so first install bash-preexec:
|
||||
|
|
5
atuin.plugin.zsh
Normal file
5
atuin.plugin.zsh
Normal file
|
@ -0,0 +1,5 @@
|
|||
local FOUND_ATUIN=$+commands[atuin]
|
||||
|
||||
if [[ $FOUND_ATUIN -eq 1 ]]; then
|
||||
source <(atuin init zsh)
|
||||
fi
|
Loading…
Reference in a new issue