aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.adoc40
1 files changed, 20 insertions, 20 deletions
diff --git a/README.adoc b/README.adoc
index 780ff60..d51dc76 100644
--- a/README.adoc
+++ b/README.adoc
@@ -73,26 +73,6 @@ zle -N sdn-navigate
bindkey '\eo' sdn-navigate
----
-fish
-~~~~
-To start using this navigator, put the following in your 'config.fish':
-
-----
-function sdn-navigate
- set --local IFS
- set --local buffer (commandline)
- set --local cursor (commandline --cursor)
- while eval (sdn $buffer $cursor | string replace -ar '^(.*?)=' 'set --$1 ')
- test -z "$cd" || cd "$cd"
- test -z "$insert" || commandline --insert "$insert "
- test -z "$helper" && break
- /bin/sh -c "$helper" || break
- end
- commandline --function repaint
-end
-bind \eo sdn-navigate
-----
-
bash
~~~~
Here we can't make the shell update the prompt on directory changes since
@@ -130,6 +110,26 @@ bind -x '"\201": sdn-restore'
bind '"\eo":"\200\C-m\201"'
----
+fish
+~~~~
+To start using this navigator, put the following in your 'config.fish':
+
+----
+function sdn-navigate
+ set --local IFS
+ set --local buffer (commandline)
+ set --local cursor (commandline --cursor)
+ while eval (sdn $buffer $cursor | string replace -ar '^(.*?)=' 'set --$1 ')
+ test -z "$cd" || cd "$cd"
+ test -z "$insert" || commandline --insert "$insert "
+ test -z "$helper" && break
+ /bin/sh -c "$helper" || break
+ end
+ commandline --function repaint
+end
+bind \eo sdn-navigate
+----
+
elvish
~~~~~~
To start using this navigator, put the following in your 'rc.elv':