aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/interactive.config
diff options
context:
space:
mode:
authorGravatar Kevin Ballard <kevin@sb.org>2014-09-18 15:45:07 -0700
committerGravatar Kevin Ballard <kevin@sb.org>2014-09-18 15:46:17 -0700
commit0a32d96b270345af59ad1c807e9f001894d0bb81 (patch)
tree5b724d3300f6e44b16c71e61818cd8cf0899128f /tests/interactive.config
parent174f5ba99ad633cf538ca0d2644418ea69fe9853 (diff)
Reset fish_bind_mode when changing fish_key_bindings
Also avoid resetting bindings if fish_key_bindings is "modified" without actually changing. Fixes #1638.
Diffstat (limited to 'tests/interactive.config')
-rw-r--r--tests/interactive.config7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/interactive.config b/tests/interactive.config
index 911bfd65..835bdfd3 100644
--- a/tests/interactive.config
+++ b/tests/interactive.config
@@ -1,13 +1,16 @@
# vim: set filetype=fish sw=4 ts=4 et:
-set -g prompt_counter 1
+# source the non-interactive config
+source $XDG_CONFIG_HOME/../tmp.config/fish/config.fish
+
+set -g prompt_counter 0
set -g prompt_counter_incr 0
function fish_prompt
- echo "prompt $prompt_counter>"
if test $prompt_counter_incr -eq 1
set -g prompt_counter (expr $prompt_counter + 1)
set -g prompt_counter_incr 0
end
+ echo "prompt $prompt_counter>"
end
function fish_prompt_event --on-event fish_prompt
set -g prompt_counter_incr 1