README.adoc: fish after bash

Bash is a bad citizen but this order makes more sense.
This commit is contained in:
Přemysl Eric Janouch 2020-10-20 03:47:12 +02:00
parent 6f40b8db3a
commit a95fa2f96d
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 20 additions and 20 deletions

View File

@ -73,26 +73,6 @@ zle -N sdn-navigate
bindkey '\eo' 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 bash
~~~~ ~~~~
Here we can't make the shell update the prompt on directory changes since 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"' 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 elvish
~~~~~~ ~~~~~~
To start using this navigator, put the following in your 'rc.elv': To start using this navigator, put the following in your 'rc.elv':