aboutsummaryrefslogtreecommitdiff
path: root/modules/base/fish/functions/fish_user_key_bindings.fish
diff options
context:
space:
mode:
Diffstat (limited to 'modules/base/fish/functions/fish_user_key_bindings.fish')
-rw-r--r--modules/base/fish/functions/fish_user_key_bindings.fish6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/base/fish/functions/fish_user_key_bindings.fish b/modules/base/fish/functions/fish_user_key_bindings.fish
new file mode 100644
index 00000000000..9799d461120
--- /dev/null
+++ b/modules/base/fish/functions/fish_user_key_bindings.fish
@@ -0,0 +1,6 @@
+function fish_user_key_bindings
+ # Make `!!` and `!$` work
+ bind ! __history_previous_command
+ bind '$' __history_previous_command_arguments
+ bind \cr __fancy_history
+end