https://github.com/al-jshen/zshplug-rs-example
example zsh plugin with rust processing
https://github.com/al-jshen/zshplug-rs-example
Last synced: 4 months ago
JSON representation
example zsh plugin with rust processing
- Host: GitHub
- URL: https://github.com/al-jshen/zshplug-rs-example
- Owner: al-jshen
- License: mit
- Created: 2020-07-25T00:45:46.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-31T20:38:24.000Z (over 5 years ago)
- Last Synced: 2024-04-13T02:56:28.520Z (about 2 years ago)
- Language: Shell
- Size: 8.79 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zsh-plugins - rs-example - An example plugin showing how a Rust program can listen to and process commands from ZSH. (Tutorials / Generic ZSH)
- fucking-awesome-zsh-plugins - rs-example - An example plugin showing how a Rust program can listen to and process commands from ZSH. (Tutorials / Generic ZSH)
README
# zshplug-rs-example
Basic zsh plugin example where a Rust program listens to and processes commands from zsh.
## Instructions
To compile the Rust program, [rustup](https://rustup.rs/) is required. Install it as follows (recommended):
```
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```
or using your preferred package manager.
Clone this directory:
```
git clone https://github.com/al-jshen/zshplug-rs-example
```
Then navigate into the zshplug-rs-example directory, and compile the binary:
```
cd zshplug-rs-example
cargo build --release
```
Add the zsh plugin to your `.zshrc` file
```
source path/to/zshplug-rs-example/termwrap.plugin.zsh
```
or use your preferred zsh plugin manager.