Experimentally switch to using Atuin for shell history

This commit is contained in:
Danielle McLean 2023-11-28 00:12:13 +11:00
parent 01f7d4f44c
commit 7003ae18ba
Signed by: 00dani
GPG key ID: 52C059C3B22A753E
2 changed files with 1 additions and 8 deletions

View file

@ -1,8 +0,0 @@
#! zsh
if (( $+commands[sk] )); then
# TODO: figure out where lotabout/skim puts these Zsh support files on non-Homebrew installs
[[ $- == *i* ]] && source /usr/local/opt/sk/share/zsh/site-functions/completion.zsh 2>/dev/null
source /usr/local/opt/sk/share/zsh/site-functions/key-bindings.zsh
else
bindkey '^R' history-incremental-search-backward
fi

View file

@ -39,6 +39,7 @@ zmodule mollifier/cd-gitroot --fpath . --autoload cd-gitroot
zmodule zsh-users/zsh-autosuggestions zmodule zsh-users/zsh-autosuggestions
(( ${+commands[brew]} )) && zmodule homebrew (( ${+commands[brew]} )) && zmodule homebrew
zeval-if-installed atuin 'atuin init zsh --disable-up-arrow'
zeval-if-installed direnv 'direnv hook zsh' zeval-if-installed direnv 'direnv hook zsh'
zeval-if-installed scmpuff 'scmpuff init --shell=zsh' zeval-if-installed scmpuff 'scmpuff init --shell=zsh'