unify ctrl-r control
This commit is contained in:
parent
1e1be0ccff
commit
c351e54479
2 changed files with 10 additions and 9 deletions
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env zsh
|
||||
if [[ ${MCFLY_USED} != 1 ]]; then
|
||||
if [[ "${CTRL_R_PICKER}" == "skim" ]]; then
|
||||
if zmodload zsh/parameter 2>/dev/null && (( ${+options} )); then
|
||||
__skim_key_bindings_options="options=(${(j: :)${(kv)options[@]}})"
|
||||
else
|
||||
|
|
17
zsh/zshrc
17
zsh/zshrc
|
@ -151,15 +151,16 @@ if [[ -d $HOME/.anyenv ]]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
# if [[ $(_command-exists mcfly) -eq 0 ]]; then
|
||||
# znap eval mcfly 'mcfly init zsh'
|
||||
# export MCFLY_KEY_SCHEME=vim
|
||||
# export MCFLY_FUZZY=true
|
||||
# export MCFLY_RESULTS=50
|
||||
# export MCFLY_USED=1
|
||||
# fi
|
||||
CTRL_R_PICKER="atuin"
|
||||
if [[ "${CTRL_R_PICKER}" == "mcfly" ]]; then
|
||||
znap eval mcfly 'mcfly init zsh'
|
||||
export MCFLY_KEY_SCHEME=vim
|
||||
export MCFLY_FUZZY=true
|
||||
export MCFLY_RESULTS=50
|
||||
export MCFLY_USED=1
|
||||
fi
|
||||
|
||||
if [[ $(_command-exists atuin) -eq 0 ]]; then
|
||||
if [[ "${CTRL_R_PICKER}" == "atuin" ]]; then
|
||||
znap eval atuin 'atuin init zsh'
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue