• Stars
    star
    562
  • Rank 79,281 (Top 2 %)
  • Language
    Shell
  • License
    Other
  • Created almost 6 years ago
  • Updated 28 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The zsh manager for auto-expanding abbreviations, inspired by fish. ~18,000 clones by ~12,000 unique cloners as of Sept '24, and averaging ~60 Homebrew installs monthly since June 2023

zsh-abbr GitHub release (latest by date)

zsh-abbr is the zsh manager for auto-expanding abbreviations - text that when written in a terminal is replaced with other (typically longer) text. Inspired by fish shell.

For example, abbreviate git checkout as co (or even c or anything else). Type coSpace and the co turns into git checkout. Abbreviate git checkout main as cm. Type cmEnter and the cm turns into and runs git checkout main. Don't want an abbreviation to expand? Use CtrlSpace instead of Space, and ;Enter instead of Enter.

Why? Like aliases, abbreviations save keystrokes. Unlike aliases, abbreviations can leave you with a transparently understandable command history ready for using on a different computer or sharing with a colleague. And where aliases can let you forget the full command, abbreviations may help you learn the full command even as you type the shortened version.

Like zsh's alias, zsh-abbr supports "regular" (i.e. command-position) and "global" (anywhere on the line) abbreviations. Like fish's abbr, zsh-abbr supports interactive creation of persistent abbreviations which are immediately available in all terminal sessions. Abbreviations automatically sync to a file, ready for your dotfile management.

Run abbr help for documentation; if the package is installed with Homebrew, man abbr is also available.

Documentation

📖 See the guide at https://zsh-abbr.olets.dev/

v5 is a major release. It makes changes that will require some users to update their configurations. Details are in the migration guide.

Changelog

See the CHANGELOG file.

Roadmap

See the ROADMAP file.

Contributing

Looking for the documentation site's source? See https://github.com/olets/zsh-abbr-docs

Thanks for your interest. Contributions are welcome!

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Check the Issues to see if your topic has been discussed before or if it is being worked on. You may also want to check the roadmap (see above).

Please read CONTRIBUTING.md before opening a pull request.

The test suite uses zsh-test-runner. Run with test suite with . ./tests/index.ztr.zsh.

Sponsoring

Love zsh-abbr? I'm happy to be able to provide it for free. If you are moved to turn appreciation into action, I invite you to make a donation to one of the organizations listed below (to be listed as a financial contributor, send me a receipt via email or Reddit DM). Thank you!

  • O‘ahu Water Protectors a coalition of organizers and concerned community members fighting for safe, clean water on Oʻahu. Currently focused on the Red Hill Bulk Fuel Storage Facility crisis (see Sierra Club of Hawaii's explainer).
  • Hoʻoulu ʻĀina is a 100-acre nature preserve nestled in the back of Kali hi valley on the island of Oʻahu which seeks to provide people of our ahupuaʻa and beyond the freedom to make connections and build meaningful relationships with the ʻāina, each other and ourselves.
  • Ol Pejeta Conservancy are caretakers of the land, safeguarding endangered species and ensuring the openness and accessibility of conservation for all. They empower their people to think the same way and embrace new approaches to conservation, and provide natural wilderness experiences, backed up by scientifically credible conservation and genuine interactions with wildlife.
  • Southern Utah Wilderness Alliance (SUWA) the only non-partisan, non-profit organization working full time to defend Utah’s redrock wilderness from oil and gas development, unnecessary road construction, rampant off-road vehicle use, and other threats to Utah’s wilderness-quality lands.

Community

This project uses all-contributors to recognize its community. The key to the emojis is on the all-contributors website.

Henry Bley-Vroman
Henry Bley-Vroman

📖 🎨 💬 🔧
Akinori MUSHA
Akinori MUSHA

💻
Alwin Wang
Alwin Wang

💻
Henré Botha
Henré Botha

💻 🤔 💵
Lucas Larson
Lucas Larson

🐛
Stefan Hojer
Stefan Hojer

💻

License

zsh-abbr by Henry Bley-Vroman is licensed under a license which is the unmodified text of CC BY-NC-SA 4.0 and the unmodified text of a Hippocratic License 3. It is not affiliated with Creative Commons or the Organization for Ethical Source.

Human-readable summary of (and not a substitute for) the LICENSE file:

You are free to

  • Share — copy and redistribute the material in any medium or format
  • Adapt — remix, transform, and build upon the material

Under the following terms

  • Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • Non-commercial — You may not use the material for commercial purposes.
  • Ethics - You must abide by the ethical standards specified in the Hippocratic License 3 with Ecocide, Extractive Industries, US Tariff Act, Mass Surveillance, Military Activities, and Media modules.
  • Preserve terms — If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.
  • No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.

Acknowledgments

More Repositories

1

zsh-window-title

A zsh plugin for informative terminal window titles. ~1000 unique cloners as of July '24
Shell
28
star
2

ScreenshotFrames

A small CSS library for adding responsive frames (mobile device, desktop computer, or browser toolbar) to images
CSS
23
star
3

git-replay

Automate the rebasing of Git branches and creation of stage branches
Shell
15
star
4

setting-up-a-new-mac-2018

my basic Mac setup
11
star
5

hometown-prompt

Feature rich, high performance Git-aware zsh theme. Nearly 500 unique cloners as of Oct '24
Shell
8
star
6

command-execution-timer

A zsh plugin for measuring, working with, and displaying the time an interactive shell command takes to execute.
Shell
8
star
7

zsh-test-runner

Straight-forward tests and coverage reports for zsh and —under zsh's emulation— csh, ksh, and sh. ~200 unique cloners as of July '24
Shell
7
star
8

git-prompt-kit

Configurable set of components for creating feature rich, high performance Git-aware zsh prompts (aka themes) with minimal coding. Nearly 600 unique cloners as of Oct '24
Shell
6
star
9

zsh-autosuggestions-abbreviations-strategy

Have zsh-autosuggestions suggest your zsh-abbr abbreviations
Shell
5
star
10

nextjs-shop

A starter Next.js React e-commerce site
JavaScript
4
star
11

zsh-configuration-for-better-dx

Small zsh customizations for big productivity gains
Vue
3
star
12

genealogit

Genealogy modeled in Git, with CLI for building and visualizing family trees and for determining blood relationships
TypeScript
3
star
13

git-random

git-random: quickly build random-content Git trees to a specified shape. An aid for learning and experimenting with Git
Shell
3
star
14

homebrew-tap

Homebrew formulae for olets's repos
Ruby
2
star
15

groundhogday.party

Source for groundhogday.party
Twig
2
star
16

form-reset

Small stand-alone LESS stylesheet for styling forms
CSS
2
star
17

zsh-abbr-v5-docs

Documentation for zsh-abbr v5
JavaScript
2
star
18

tailwindcss-fluid-font-size

Tailwind CSS fluid font size utilities plugin. JSR doesn't give usage stats but 280+ people have read the docs as of July '24
2
star
19

astro-craftcms

Starter project for Astro with Craft CMS as the content source
Astro
1
star
20

shiki

Forks of some Shiki org repos. Notably, @olets/eleventy-plugin-shiki-twoslash support Eleventy 3 and adds the latest Shiki themes and languages
TypeScript
1
star
21

nitro-zsh-completions

zsh completions for https://github.com/craftcms/nitro
Shell
1
star
22

larsen-font

David Armstrong's font for using Grey Larsen’s ornamentation notation system
1
star
23

homebrew-formulae

Ruby
1
star
24

WideText

Easy truly responsive font sizing for one or more lines of text with an ultra-lightweight run-once script
JavaScript
1
star
25

homebrew-script-demo

Shell
1
star
26

gulp-bowerer

A gulp recipe for automatically processing your bower components
1
star
27

unocss-preset-css

A front-end tool which unlocks writing something very close to vanilla CSS directly in the `class` attribute
TypeScript
1
star
28

olets

1
star
29

MacKeyboard

Used to a Mac, but using something else? Remap the keys to what you expect.
AutoHotkey
1
star
30

front-end-progress

An easy-to-maintain, easy-to-read tracker for front-end development: keep track of progress on templates, reused components, and page-specific modules, at various device widths
HTML
1
star
31

tweet-styles

Turn Twitter JSON into semantically marked-up tweets with Twitter-like styles, or easily customize your own look
CSS
1
star
32

griid

griid: the greedy grid that tries to do it all with LESS. griid supports single rows with equal-width equal-height cells, multiple rows with equal-width cells, and multiple rows with fractional width cells. Best of all griid lets you easily adjust and resize your grids on the fly
HTML
1
star
33

git-prompt-kit-docs

JavaScript
1
star
34

alalabooks.com

HTML
1
star
35

zsh-abbr-v4-docs

Documentation for zsh-abbr v4
JavaScript
1
star
36

zsh-test-runner-docs

Documentation for zsh-test-runner
JavaScript
1
star
37

hometown-prompt-docs

Documentation for hometown-prompt
JavaScript
1
star
38

nextjs-on-all-the-hosts

Next.js blog tutorial
JavaScript
1
star
39

comparing-git-cmses

Nunjucks
1
star
40

css-fluid-length

A JS utility for generating fluid CSS length values
1
star
41

bayard-variations

abcm2ps decorations to add support for variation notation modeled after Samuel Bayard's
1
star