[ZSH] Add atuin history with cwd, own Ctrl-R
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e9a0636d27
commit
015027ed3b
5 files changed
+21
-3
No files matched your search
+11
@@ -62,6 +62,17 @@ VI_MODE_SET_CURSOR=true
|
||||
source $REPLY
|
||||
_zst_mark fzf
|
||||
|
||||
# atuin: history with cwd/exit code; after fzf so its Ctrl-R wins. Keeps up-arrow
|
||||
# and ? (no Atuin AI).
|
||||
if (( $+commands[atuin] )); then
|
||||
export ATUIN_CONFIG_DIR=~/dotfiles/.config/atuin
|
||||
_zsh_cached atuin.zsh ${commands[atuin]:A} $ATUIN_CONFIG_DIR/config.toml \
|
||||
-- atuin init zsh --disable-up-arrow --disable-ai && source $REPLY
|
||||
# no `atuin search` spawn per keystroke (autosuggest runs synchronously)
|
||||
ZSH_AUTOSUGGEST_STRATEGY=(${ZSH_AUTOSUGGEST_STRATEGY:#atuin})
|
||||
fi
|
||||
_zst_mark atuin
|
||||
|
||||
[[ -f ~/.zsh/.mac_config.zsh ]] && source ~/.zsh/.mac_config.zsh
|
||||
_zst_mark mac-config
|
||||
# deps: go binary and `go env -w` files (macOS, Linux)
|
||||
|
||||
Reference in new issue
Block a user