r/zsh

▲ 76 r/zsh+1 crossposts

my best zsh config soo far!

After spending a long time tweaking my zsh config, I ended up with no plugin manager and no custom prompt!

Everything is native, lazy-loaded, and deferred.

Minimal native prompt, fast startup, and modular config.

btw, I'm loading 9 plugins and multiple config files for fzf, function, etc..

Only 11 lines in .zshrc

Here are my zsh-bench measurements on login:

first_prompt_lag_ms=16.963
first_command_lag_ms=17.380
command_lag_ms=13.187
input_lag_ms=3.318
exit_time_ms=15.100

feel free to check the repo:
https://github.com/houssamouhra/zsh-config

u/TopCheesecake7887 — 5 days ago
▲ 3 r/zsh

Update on EasyAlias – alias import, suggestions, Homebrew and now the Mac App Store

About a month ago I shared EasyAlias here and got some useful feedback, so I wanted to post a small update on what has changed since then.

EasyAlias is an open-source GUI for creating and managing terminal aliases. On macOS it integrates with zsh, so you can manage your aliases without manually editing .zshrc.

Since my last post I’ve added:

  • Import of existing aliases
  • Built-in alias suggestions for Git, Docker, Maven, Gradle and common shell commands
  • Native file and folder pickers
  • Linux support
  • Homebrew installation
  • Several smaller UI and usability improvements

And as of recently, EasyAlias is also available on the Mac App Store 🎉

You can still install it with Homebrew:

brew tap hannesgnann-hub/tap
brew trust hannesgnann-hub/tap
brew install --cask easyalias

Website:
https://easyalias.org

GitHub:
https://github.com/hannesgnann-hub/easyalias

Mac App Store:
https://apps.apple.com/de/app/easyalias/id6794944241?mt=12

A lot of the changes so far came from feedback, so if you’re a zsh user and see something that could be improved, I’d be interested to hear it.

u/Firm-Relationship-22 — 7 days ago
▲ 0 r/zsh+1 crossposts

Another Bash Prompt Generator...but better!

I just released v1.0.0 of Promptr. I know there are many other prompt generators and customizers. What sets Promptr apart from them is:

  1. It's eye candy. It doesn't look like something straight out of 1995
  2. Users can authenticate with their Google account (Apple auth coming soon) to be able to actually store their saved prompts in one central location rather than keeping track of them in some Google doc. Logging in is entirely optional. The only thing that authentication provides is cloud storage for your saved prompts, otherwise it is saved locally in your web browser storage.
  3. It isn't live yet, but I intend to add a sort of "marketplace" where users can create and share their generated prompts and upvote which ones they find to be really cool and useful
  4. Basic syntax and security checks against the generated prompt to help prevent any malicious behavior. Don't forget that you are responsible for what commands are being run in your prompt config! Promptr can only protect you so much
  5. Users can apply tags to the various prompts they create so that you can have easy access to different prompt configurations for different environments and use cases
  6. A suggestion box! Please submit your feedback on the app or even any suggestions for new modules to be added that you might find useful!

This really started out because I was tired of trying to find that one bash prompt configuration I created ages ago. Rather than trying to find it, I decided to simply have a place that I can recreate it and store it long-term and build on it as new tooling and needs arise.

I hope it will be helpful for you!

promptr.sh
u/spartakick1080p — 10 days ago
▲ 29 r/zsh+3 crossposts

[Tool] I built an Oh My Zsh plugin to manage multiple OpenStack clouds, auto-venv, and fuzzy-find SSH / VNC consoles

If you work with more than one OpenStack cloud/project day to day, you know the drill: source ~/clouds/prod-openrc.sh, remember which venv has the right client version, openstack server list, ssh into whatever floating IP you copy-pasted from the output... I got tired of it and wrote a Zsh plugin to automate the parts I do 20x a day.

What it does:

- openv [cloud] — pick a cloud from clouds.yaml via fzf (with a live preview card showing auth URL / project / region, no secrets shown), activates the matching Python venv, and exports OS_CLOUD

- ops-ssh [user] [-i keyfile] [--insecure] — fuzzy-pick a server and SSH straight into its floating IP (prioritizes public IPs over private ones automatically); --insecure skips host-key checks, handy since floating IPs get recycled between instances constantly

- ops-console — fuzzy-pick a server and pop its Horizon VNC console URL open in your browser

- opcheck — quick openstack token issue sanity check so you find out your token expired before you're 3 commands deep into something

- opwho / opls — status of what's active / table of everything in clouds.yaml

- ophelp (or openv --help) — cheatsheet of everything below, printed in your terminal

- ~25 short aliases for the commands I run constantly (ops, opnet, opvol, opsec, opfl, oplb, etc. — full list in the README)

It's a normal Oh My Zsh plugin, MIT licensed, no telemetry, no dependencies beyond python3 + PyYAML + fzf (the plugin checks for these on load and warns if something's missing).▎

Install:

git clone https://github.com/whoami96/openstack-zsh-plugin.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/openstack

# add "openstack" to plugins=(...) in ~/.zshrc, then reload

Repo: https://github.com/whoami96/openstack-zsh-plugin

It's a fairly small, personal-scale tool — built it for my own workflow managing a handful of clouds — but figured it might save someone else the same repetitive typing. Happy to hear feedback or take PRs if it's missing something obvious for your workflow.

u/__Who_Am_I_____ — 11 days ago