diff options
Diffstat (limited to 'src/shell')
-rw-r--r-- | src/shell/atuin.bash | 4 | ||||
-rw-r--r-- | src/shell/atuin.zsh | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/shell/atuin.bash b/src/shell/atuin.bash index 43de3640..8c35b4f7 100644 --- a/src/shell/atuin.bash +++ b/src/shell/atuin.bash @@ -27,4 +27,6 @@ __atuin_history () preexec_functions+=(_atuin_preexec) precmd_functions+=(_atuin_precmd) -bind -x '"\C-r": __atuin_history' +if [[ -z $ATUIN_NOBIND ]]; then + bind -x '"\C-r": __atuin_history' +fi diff --git a/src/shell/atuin.zsh b/src/shell/atuin.zsh index 6a24de50..15f2492b 100644 --- a/src/shell/atuin.zsh +++ b/src/shell/atuin.zsh @@ -3,7 +3,6 @@ autoload -U add-zsh-hook export ATUIN_SESSION=$(atuin uuid) export ATUIN_HISTORY="atuin history list" -export ATUIN_BINDKEYS="true" _atuin_preexec(){ id=$(atuin history start "$1") @@ -42,7 +41,7 @@ add-zsh-hook precmd _atuin_precmd zle -N _atuin_search_widget _atuin_search -if [[ $ATUIN_BINDKEYS == "true" ]]; then +if [[ -z $ATUIN_NOBIND ]]; then bindkey '^r' _atuin_search_widget # depends on terminal mode |