https://github.com/hernancerm/poc-zsh-plugin
POC of a Zsh plugin leveraging Gawk.
https://github.com/hernancerm/poc-zsh-plugin
Last synced: about 1 year ago
JSON representation
POC of a Zsh plugin leveraging Gawk.
- Host: GitHub
- URL: https://github.com/hernancerm/poc-zsh-plugin
- Owner: hernancerm
- License: mit
- Created: 2023-10-29T17:07:56.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-18T20:42:23.000Z (over 2 years ago)
- Last Synced: 2024-12-24T03:56:36.641Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# POC of a Zsh plugin leveraging Gawk
## Requirements
- A recent version of [Gawk](https://www.gnu.org/software/gawk/). On macOS this can be
installed by using [Homebrew](https://brew.sh/): `brew install gawk`.
## Installation
Use your favorite plugin manager. For example, here is the configuration for
[Sheldon](https://github.com/rossmacarthur/sheldon):
```toml
# ~/.config/sheldon/plugins.toml
[plugins.poc-zsh-plugin]
github = "HerCerM/poc-zsh-plugin"
```
## Usage
The plugin provides the Zsh function `pzp_length`, which prints to stdout the length of
the string provided as the first argument. For example:
Command:
```text
pzp_length Hang
```
Stdout:
```text
4
```