Crates.io | klatsche |
lib.rs | klatsche |
version | 1.0.1 |
source | src |
created_at | 2024-04-11 17:11:49.309857 |
updated_at | 2024-04-11 17:21:13.159082 |
description | cli tool to parse and rank known terminal aliases against a given command, intended to be used as a preexec hook for zsh |
homepage | |
repository | https://github.com/JoschuaSchneider/klatsche/ |
max_upload_size | |
id | 1205127 |
size | 38,324 |
Gives you a ⚡️ blazingly-fast ⚡️ slap on the wrist if you forget to use your terminal aliases.
rust
installedzsh
installed and configuredzimfw
setup for use with zmodule
cargo install klatsche
Clone the repository and run:
cargo build --release
zmodule
Add the following to your .zimfw
file:
zmodule /Path/to/klatsche --source klatsche.zsh
When building from source, set the KLATSCHE_HOME
env variable in your .zshrc
file:
KLATSCHE_HOME=/Path/to/klatsche
and then add the following to your .zimfw
file:
zmodule /Path/to/klatsche --source klatsche_from_source.zsh
Run zimfw install
and restart terminal session.
Restart terminal session.
Type any long form of an alias, you get a slap in the terminal 🎉