README.adoc: fish after bash
Bash is a bad citizen but this order makes more sense.
This commit is contained in:
parent
6f40b8db3a
commit
a95fa2f96d
40
README.adoc
40
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':
|
||||
|
|
Loading…
Reference in New Issue