From: Anna Arad <4895022+annagrram@users.noreply.github.com> Date: Wed, 23 Oct 2019 13:55:57 +0000 (+0300) Subject: Fix code examples in plugins README X-Git-Tag: v2.8~130 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=b81affffa1cadbfcacd6e3d24295d97f363b537f;p=nnn.git Fix code examples in plugins README --- diff --git a/plugins/README.md b/plugins/README.md index 9d48ec30..5c166767 100644 --- a/plugins/README.md +++ b/plugins/README.md @@ -109,7 +109,7 @@ There are many plugins provided by `nnn` which can be used as examples. Here are - Change to directory in clipboard using helper script ```sh #!/usr/bin/env sh - . $(dirname $0/.nnn-plugin-helper) + . $(dirname $0)/.nnn-plugin-helper nnn_cd "$(xsel -ob)" ``` @@ -117,7 +117,7 @@ There are many plugins provided by `nnn` which can be used as examples. Here are - Change direcory to the location of a link using helper script with specific context (current) ```sh #!/usr/bin/env sh - . $(dirname $0/.nnn-plugin-helper) + . $(dirname $0)/.nnn-plugin-helper nnn_cd "$(dirname $(readlink -fn $1))" 0 ```