aboutsummaryrefslogtreecommitdiffstats
path: root/src/shell/atuin.zsh
diff options
context:
space:
mode:
authorEllie Huxtable <e@elm.sh>2021-05-08 14:17:22 +0100
committerGitHub <noreply@github.com>2021-05-08 14:17:22 +0100
commit8bd4d12cfa008f761afb12a8e966f4fb95a47753 (patch)
tree92eafc0f72574c506fad9896d6b5a49164736cb9 /src/shell/atuin.zsh
parentAdd a newline when editing shell rc files (#60) (diff)
downloadatuin-8bd4d12cfa008f761afb12a8e966f4fb95a47753.zip
Add ATUIN_NOBIND (#62)
* Add ATUIN_NOBIND * Update docs/key-binding.md `<kbd>`, what magic Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com> Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>
Diffstat (limited to 'src/shell/atuin.zsh')
-rw-r--r--src/shell/atuin.zsh3
1 files changed, 1 insertions, 2 deletions
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