mirror of
https://github.com/jarun/nnn.git
synced 2024-11-17 16:39:14 +00:00
Add example: run cmd as plugin to change directory
This commit is contained in:
parent
2f22afcacc
commit
9259170afd
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue