summaryrefslogtreecommitdiff
path: root/README.adoc
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2020-10-20 03:47:12 +0200
committerPřemysl Eric Janouch <p@janouch.name>2020-10-20 03:47:12 +0200
commita95fa2f96df72eba30e8348c8526677f27b906b1 (patch)
tree6bf139d34faa32e8078d2b7ebdeb93fd6374aab5 /README.adoc
parent6f40b8db3a4e413cfd0462e38ec1476bb6c0bffe (diff)
downloadsdn-a95fa2f96df72eba30e8348c8526677f27b906b1.tar.gz
sdn-a95fa2f96df72eba30e8348c8526677f27b906b1.tar.xz
sdn-a95fa2f96df72eba30e8348c8526677f27b906b1.zip
README.adoc: fish after bash
Bash is a bad citizen but this order makes more sense.
Diffstat (limited to 'README.adoc')
-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':