mirror of
https://github.com/jarun/nnn.git
synced 2025-03-24 07:12:16 +00:00
Add example: run cmd as plugin to change directory
This commit is contained in:
parent
2f22afcacc
commit
9259170afd
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue