diff --git a/README.md b/README.md index 795cbdc..a5b2934 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/atuin.plugin.zsh b/atuin.plugin.zsh new file mode 100644 index 0000000..f0995ec --- /dev/null +++ b/atuin.plugin.zsh @@ -0,0 +1,5 @@ +local FOUND_ATUIN=$+commands[atuin] + +if [[ $FOUND_ATUIN -eq 1 ]]; then + source <(atuin init zsh) +fi