Adding plugin for zsh (#117)

* Adding plugin for zsh

* plugin manager documentation
This commit is contained in:
Michael Bianco 2021-05-12 14:47:06 -06:00 committed by GitHub
parent fd90bd3413
commit f041d7fe4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View File

@ -131,6 +131,12 @@ the install script, this should all be done for you!
echo 'eval "$(atuin init zsh)"' >> ~/.zshrc echo 'eval "$(atuin init zsh)"' >> ~/.zshrc
``` ```
Or using a plugin manager:
```
zinit load ellie/atuin
```
### bash ### bash
We need to setup some hooks, so first install bash-preexec: We need to setup some hooks, so first install bash-preexec:

5
atuin.plugin.zsh Normal file
View File

@ -0,0 +1,5 @@
local FOUND_ATUIN=$+commands[atuin]
if [[ $FOUND_ATUIN -eq 1 ]]; then
source <(atuin init zsh)
fi