aboutsummaryrefslogtreecommitdiff
path: root/README.adoc
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2020-10-01 04:17:22 +0200
committerPřemysl Eric Janouch <p@janouch.name>2020-10-01 04:20:10 +0200
commit5fff336e774b2b93f3d9d02c5482e497a0f45b74 (patch)
tree342431d41d19bbdc290e6af60c70f5428285f03c /README.adoc
parent6e8d816ada2445fb098f76418deceef6c9eb049d (diff)
downloadsdn-5fff336e774b2b93f3d9d02c5482e497a0f45b74.tar.gz
sdn-5fff336e774b2b93f3d9d02c5482e497a0f45b74.tar.xz
sdn-5fff336e774b2b93f3d9d02c5482e497a0f45b74.zip
README.adoc: fix up hswg compatibility
Diffstat (limited to 'README.adoc')
-rw-r--r--README.adoc12
1 files changed, 6 insertions, 6 deletions
diff --git a/README.adoc b/README.adoc
index a1637be..b63ea94 100644
--- a/README.adoc
+++ b/README.adoc
@@ -52,7 +52,7 @@ zsh
~~~
To start using this navigator, put the following in your '.zshrc':
-....
+----
sdn-navigate () {
# ... possibly zle-line-init
while eval "`sdn`"; do
@@ -65,13 +65,13 @@ sdn-navigate () {
}
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
while eval (sdn | string replace -ar '^(.*?)=' 'set --$1 ')
@@ -83,14 +83,14 @@ function sdn-navigate
commandline --function repaint
end
bind \eo sdn-navigate
-....
+----
bash
~~~~
Here we can't reset the prompt from within a `bind -x` handler but there is
an acceptable workaround that sadly submits a blank line:
-....
+----
sdn-navigate () {
SDN_L=$READLINE_LINE SDN_P=$READLINE_POINT
READLINE_LINE=
@@ -113,7 +113,7 @@ sdn-restore () {
bind -x '"\200": sdn-navigate'
bind -x '"\201": sdn-restore'
bind '"\eo":"\200\C-m\201"'
-....
+----
Configuration
-------------