about summary refs log tree commit diff
path: root/scripts/setup_keybindings.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/setup_keybindings.sh')
-rw-r--r--scripts/setup_keybindings.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/setup_keybindings.sh b/scripts/setup_keybindings.sh
new file mode 100644
index 000000000000..872f3eea429b
--- /dev/null
+++ b/scripts/setup_keybindings.sh
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+
+
+# This file is run after history_functions.sh have been sourced.
+# It converts the defined functions into zsh widgets that are
+# thereafter bound to keys for expedience.
+
+
+zle -N wh_two_back_widget wh_two_back &&
+bindkey '^@' wh_two_back_widget
+