Parcourir la source

Fix code examples in plugins README

master
Anna Arad GitHub il y a 5 ans
Parent
révision
b81affffa1
Aucune clé connue n'a été trouvée dans la base pour cette signature ID de la clé GPG: 4AEE18F83AFDEB23
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. +2
    -2
      plugins/README.md

+ 2
- 2
plugins/README.md Voir le fichier

@@ -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 - Change to directory in clipboard using helper script
```sh ```sh
#!/usr/bin/env sh #!/usr/bin/env sh
. $(dirname $0/.nnn-plugin-helper) . $(dirname $0)/.nnn-plugin-helper


nnn_cd "$(xsel -ob)" 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) - Change direcory to the location of a link using helper script with specific context (current)
```sh ```sh
#!/usr/bin/env sh #!/usr/bin/env sh
. $(dirname $0/.nnn-plugin-helper) . $(dirname $0)/.nnn-plugin-helper


nnn_cd "$(dirname $(readlink -fn $1))" 0 nnn_cd "$(dirname $(readlink -fn $1))" 0
``` ```


||||||
x
 
000:0
Chargement…
Annuler
Enregistrer