aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2020-08-28 18:33:08 +0200
committerPřemysl Eric Janouch <p@janouch.name>2020-08-28 18:33:08 +0200
commitf4eebf59afce7cd3901d7f0d7d05e475e115258b (patch)
tree6deb4a53e9e871005bc40adf1bef55d231f7bb1a
parent63982b375419b15526d6c26f56b854268003ba40 (diff)
downloadsdn-f4eebf59afce7cd3901d7f0d7d05e475e115258b.tar.gz
sdn-f4eebf59afce7cd3901d7f0d7d05e475e115258b.tar.xz
sdn-f4eebf59afce7cd3901d7f0d7d05e475e115258b.zip
README: make listings hswg-compatible
-rw-r--r--README.adoc12
1 files changed, 6 insertions, 6 deletions
diff --git a/README.adoc b/README.adoc
index 5229b97..9bdb1fb 100644
--- a/README.adoc
+++ b/README.adoc
@@ -46,7 +46,7 @@ zsh
---
To start using this navigator, put the following in your .zshrc:
-----
+....
sdn-navigate () {
# ... possibly zle-line-init
eval "`sdn`"
@@ -57,14 +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=
@@ -84,19 +84,19 @@ 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.