mirror of
https://github.com/atuinsh/atuin.git
synced 2024-11-28 19:23:47 +01:00
Adding plugin for zsh (#117)
* Adding plugin for zsh * plugin manager documentation
This commit is contained in:
parent
fd90bd3413
commit
f041d7fe4a
@ -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
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 New Issue
Block a user