diff options
-rw-r--r-- | README.md | 6 | ||||
-rw-r--r-- | atuin.plugin.zsh | 5 |
2 files changed, 11 insertions, 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: diff --git a/atuin.plugin.zsh b/atuin.plugin.zsh new file mode 100644 index 00000000..f0995ecf --- /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 |