Add example: run cmd as plugin to change directory

This commit is contained in:
Arun Prakash Jana 2023-11-18 00:59:09 +05:30
parent 2f22afcacc
commit 9259170afd
1 changed files with 4 additions and 0 deletions

View File

@ -370,6 +370,10 @@ if [ -n "$pattern" ]; then
fi
```
#### Change directory
NNN_PLUG='c:!read -r to && [ -n "$to" ] && printf "0c%s" "${to}" > "$NNN_PIPE"*'
## Contributing plugins
1. Add informative sections like _Description_, _Notes_, _Dependencies_, _Shell_, _Author_ etc. in the plugin.