summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2020-08-28 18:30:49 +0200
committerPřemysl Eric Janouch <p@janouch.name>2020-08-28 18:30:49 +0200
commit63982b375419b15526d6c26f56b854268003ba40 (patch)
tree1a01ff1be2a7112244f99e962384545e461ddea7
parentd6eaf44aee86f36f73c336441cdf8a48f60c3851 (diff)
downloadsdn-63982b375419b15526d6c26f56b854268003ba40.tar.gz
sdn-63982b375419b15526d6c26f56b854268003ba40.tar.xz
sdn-63982b375419b15526d6c26f56b854268003ba40.zip
README: make listings libasciidoc-compatible
-rw-r--r--README.adoc16
1 files changed, 10 insertions, 6 deletions
diff --git a/README.adoc b/README.adoc
index 5067fa4..5229b97 100644
--- a/README.adoc
+++ b/README.adoc
@@ -45,7 +45,8 @@ into the PATH of any machine you want to have 'sdn' on.
zsh
---
To start using this navigator, put the following in your .zshrc:
-....
+
+----
sdn-navigate () {
# ... possibly zle-line-init
eval "`sdn`"
@@ -56,13 +57,14 @@ sdn-navigate () {
}
zle -N sdn-navigate
bindkey '\eo' sdn-navigate
-....
+----
bash
----
Here we can't reset the prompt from within a `bind -x` handler but there is
an acceptable workaround:
-....
+
+----
sdn-navigate () {
SDN_L=$READLINE_LINE SDN_P=$READLINE_POINT
READLINE_LINE=
@@ -82,18 +84,20 @@ sdn-restore () {
bind -x '"\200": sdn-navigate'
bind -x '"\201": sdn-restore'
bind '"\eo":"\200\C-m\201"'
-....
+----
Colors
------
Here is an example of a '~/.config/sdn/look' file; the format is similar to
that of git, only named colors aren't supported:
-....
+
+----
cursor 231 202
bar 16 255 ul
cwd bold
input
-....
+----
+
Filename colors are taken from the `LS_COLORS` environment variable.
Run `dircolors` to get some defaults.