Skip to content

Commit

Permalink
Add example: run cmd as plugin to change directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jarun committed Nov 17, 2023
1 parent 2f22afc commit 9259170
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 9259170

Please sign in to comment.