r/zsh • • Jul 28 '26

An alternative to Zsh autosuggestion and autocomplete

656 Upvotes

I want to introduce to y'all a Zsh autocomplete and autosuggestion alternative (Please remove Zsh autocomplete and autosuggestion before using it)

The original reason was that the Zsh autocomplete plugin made my Zsh startup noticeably slow. Every time I opened a new shell, I had to wait like for 0.5-1s before I could start typing something

IRIS is a command suggestion tool that works like Code Editor IntelliSense, but for the terminal. It also has history mode that lets you quickly find previous commands with fuzzy search like Zsh Autocomplete (as you can see in the gif)

It's a TTY wrapper so basically it runs everywhere, like in any terminal, tmux, ssh, even Linux virtual terminals (Ctrl + Alt + F1-F9)

It also supports AI suggestions like Cursor or Antigravity, using your own API key or a local model (please don't use API key that costs you from subscription, free cloud model is enough)

It currently supports Bash, Zsh, and Fish (PowerShell isn't supported yet, I have no plan for it at the moment). It also comes with a config file for customization

I hope it becomes a helpful tool that y'all can use every day

It's still in development, may cause bugs, so if you find any bugs, I'd really appreciate it if you could report them or share your feedback

Link: https://github.com/versenilvis/iris


r/zsh • • Sep 18 '25

Meta Found in the wild

Post image
227 Upvotes

r/zsh • • Feb 21 '26

Stop letting your shell hold you back. I created a ZSH config that has ~20ms lag. with all the modern features.

Post image
212 Upvotes

I was tired of the bloat in standard frameworks, so I rebuilt my setup from scratch to focus on pure performance and essential plugins. It's fast, clean, and needs some "real world" stress testing. Check it out and let me know if it breaks your workflow: View Config on GitHub.


r/zsh • • Mar 22 '22

IDE-style autocomplete for your zsh terminal

189 Upvotes

r/zsh • • Jun 04 '20

Announcement 🤖zsh-autocomplete🤖 goes 🔥asynchronous!!🔥 Non-blocking find-as-you-type completion for everyone!

164 Upvotes

That's right: You don't get blocked! And you don't get blocked! Everybody doesn't get blocked! 🥳

So… You didn't take zsh-autocomplete into use yet, because you felt it was cramping your typing style? Well, then you were right —but no longer! From now on, zsh-autocomplete will get smoothly out of your way as you keep on typing, just casually dropping hints for you as to what the Tab key might be able to complete. Those days of having to stop typing to see what completions are available are over!

So what are you waiting for? Get your asynchronous, non-blocking, find-as-you-type completion for free from your friendly local open-source GitHub repo:

✨ https://github.com/marlonrichert/zsh-autocomplete ✨

Tell your friends!

*Small caveat: Ironically, zsh-autocomplete might sometimes briefly block input when you stop typing. What can I say? A guy's gotta get his completion listing in sometime, right, amirite? ¯_(ツ)_/¯


r/zsh • • Jun 27 '25

zsh-ai: a tiny zsh plugin that converts plain English to shell commands - would love your feedback!

151 Upvotes

Hey folks! I built this tiny zsh plugin that converts natural language into shell commands. It's been really useful for me when I can't remember exact syntax (or when I don't know it 😅), so I thought I'd share it.

Just type # what you want to do and press Enter - it suggests the command without running it.

It's super simple (just ~5KB, no dependencies except curl), but I'd love feedback on how to make it better. I've been using it daily.

GitHub: https://github.com/matheusml/zsh-ai

What features would you find useful? Any edge cases I should handle better?


r/zsh • • Nov 27 '25

I have made man pages 10x more useful (zsh-vi-man)

150 Upvotes

https://github.com/TunaCuma/zsh-vi-man
If you use zsh with vi mode, you can use it to look for an options description quickly by pressing Shift-K while hovering it. Similar to pressing Shift-K in Vim to see a function's parameters. I built this because I often reuse commands from other people, from LLMs, or even from my own history, but rarely remember what all the options mean. I hope it helps you too, and I’d love to hear your thoughts.


r/zsh • • May 27 '21 Helpful

A Guide to the Zsh Auto-Completion With Examples

125 Upvotes

Hello everybody!

I had the idea a couple of months ago to configure the Zsh completion systems for my own needs and preferences. I didn't know I was going right into the Pit of Complexity™.

That's why I've written a guide to the Zsh completion system: to simplify the Zsh auto completion system as much as possible. More precisely, I describe:

  • How to enable the Zsh completion system.

  • How does the completion work.

  • What’s the zstyle module.

  • How to use styles to configure the Zsh completion.

  • How to trigger a precise completion using keystrokes.

  • What are the most useful styles to customize the completion.

  • How to customize the completion menu.

  • What are the Zsh options useful for the completion.

Quick tl;dr:

  • The completion system go through a series of completers first.

  • These completers try to find matches depending on the context (the command you’ve typed) using different completion functions.

  • The Zsh module “zstyle” allows you to configure settings for a specific Zsh module or widget.

  • Using zstyle is the most flexible way to tune the completion system.

  • You can configure the Zsh completion system using options and the module complist too.

Hope you like it! Any feedback (positive or negative) is more than welcome.


r/zsh • • Sep 01 '26

Live Git updates in a Zsh prompt

118 Upvotes

I’ve been experimenting with live Git updates in the shell prompt.

The idea is simple: if an IDE, coding agent, or another shell changes the repository, every open shell session updates its Git state automatically — even while the prompt is idle.

This is especially useful when several tools are working with the same repository at the same time.

I implemented it in Cobalt Spark, my compact Zsh theme. The new release is mostly focused on Git improvements: Live Git updates, richer status, prefetch indication, and smart branch shortening. It also adds official support for popular Zsh plugin managers.

More details are in the README.


r/zsh • • Jun 04 '19

Apple makes ZSH the default shell on macOS Catalina beta

Thumbnail
support.apple.com
113 Upvotes

r/zsh • • Nov 06 '19

New Powerlevel10k Feature: Transient Prompt

112 Upvotes

There is a new feature in Powerlevel10k called Transient Prompt. You can enable it via p10k configure or manually.

  • POWERLEVEL9K_TRANSIENT_PROMPT=always: Powerlevel10k will trim down every prompt when accepting a command line.

  • POWERLEVEL9K_TRANSIENT_PROMPT=same-dir: Powerlevel10k will trim down only repeated prompts from the same directory.

See demo.

I've been using transient prompt for a week now and I love it. At first I though I need to see those past prompts to understand the context of what I was doing, so I ran with same-dir. Then I tried always and it felt refreshing and liberating. I'll be using this option in my dotfiles from now on.

Transient prompt is especially useful if your prompt looks heavy-weight. Now you can enjoy an ornamented two-line prompt without making your screen look like a Christmas tree. It'll be much easier to copy-paste commands from the terminal or to make sense of what you just did.

As always, leave a comment if you try this feature. Did it work as expected? Do you like it?

P.S.

Transient Prompt is built on top of powerful new infrastructure I've implemented which allows you to show and hide different parts of your prompt with sub-millisecond latency. Instead of trimming down prompt to just two characters, you could use the lower-level API to, for example, hide only the first prompt line, or only right prompt, or even add timestamps to past prompts so that you know when you ran each command. This infrastructure also allows you to say that you want kubernetes context displayed only when the current command you are typing is kubectl. Or to bind a key that will instantly hide/show different parts of your prompt (individual segments, right prompt, etc.). The API of this infrastructure layer is still in flux, so it's not ready for prime time. Stay tuned.


r/zsh • • Sep 13 '26

Showcase I built a zsh plugin to see visual hints while typing expansion commands with !

109 Upvotes

bang-hints is a plugin which interactively shows hints when using the expansion operator (!). I always forgot the syntax for the ! operator and I wanted to build a helper tool like NeoVim's whichkey plugin.

This is my first time creating a plugin so all feedback is appreciated.
https://github.com/DorukCem/bang_hints


r/zsh • • Jul 15 '26

Announcement undo, makes your shell forgiving again

109 Upvotes

rm -rf'd the wrong folder a while back, so I built this instead of learning to be careful. undo hooks into mv, cp, rm, mkdir, rmdir, chmod, chown, ln and rename through a shell function, logs what happened to sqlite, and rm doesn't actually delete anything, it just moves stuff to your trash. run undo and it puts back whatever you just broke.

rust, has a tui for browsing history if you don't wanna guess, zsh/bash/fish all work.

github.com/nvrmnd-png/undo
Happy to answer questions, still pretty early so bug reports are welcome too.


r/zsh • • Dec 25 '19

Announcement Use fzf as zsh's completion selection menu

109 Upvotes

I having been thinking about this since I found fzf. Because I have been very tired of running 'xxx --help | less' to find the option I need and then use it. ( emm, my memory is not good )

Valodim's great work https://github.com/Valodim/zsh-capture-completion inspired me. After several days of hard work, I finally finished https://github.com/Aloxaf/fzf-tab. It doesn't need to spawn an external zsh process so the speed is acceptable.

It is hacky, but it works ¯_(ツ)_/¯.

Hope you like it.


r/zsh • • Sep 28 '26

Discussion Where do you store zsh config, in .zsh/ or .zfunc/ or everything in .zshrc?

Post image
104 Upvotes

ㅤ

On my ~/.zshrc, I have

# Use the ~/.zsh directory for all extra configuration.
ZSH_CONFIG_DIR="$HOME/.zsh"

# My complete .zshrc + terminal config commands are in: https://sglbl.notion.site/mac

##### Completions #####
# Case Insensitive auto completion with <TAB>
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*'

# Add application auto completions to path
fpath=(
    /opt/homebrew/share/zsh/site-functions
    $ZSH_CONFIG_DIR/completions
    $fpath
)
# Load the Zsh completion system
autoload -Uz compinit

# Initialize completions using the cached dump when available
compinit -C

# Fzf reverse search using Ctrl R
source <(fzf --zsh)

# Load other zsh configurations such as aliases, if there are no matching files, don't treat it as an error.
for file in $ZSH_CONFIG_DIR/*.zsh(N); do
    source "$file"
done

##### Third-party plugins #####

# Load all third-party Zsh plugins automatically 
# e.g. fzf-tab interactive auto-completion menu, syntax highlighting..
for plugin in $ZSH_CONFIG_DIR/plugins/*/*.plugin.zsh(N); do
    source "$plugin"
done

Note that I use mac, which is not in XDG, that's why I don't have /etc/zsh/ or .config/zsh and I just call ~/.zsh/ from .zshrc. My complete .zshrc + terminal config commands are in: https://sglbl.notion.site/mac

Which directory do you use?


r/zsh • • Apr 14 '25

Showcase Just in case you didn't know

Post image
97 Upvotes

Accusations are taken seriously!


r/zsh • • May 29 '26

Showcase Replacing heavy desktop GUIs on a fanless laptop with Zsh + FZF wrappers

Post image
96 Upvotes

Hi everyone,

Running on a fanless laptop means every unnecessary CPU spike or background daemon directly affects thermal throttling and battery longevity. To keep my laptop running completely cool, I moved to a bar-free setup and completely stripped out heavy desktop control panels and system GUIs.

Instead, I built a collection of highly optimised, lightweight zsh and fzf wrapper widgets that handle core system management directly in the terminal with next to no overhead. They act as fast, interactive interfaces over standard command-line tools.

The current setup:

- Wi-Fi Connection: Live network scanning, connecting, and toggling states wrapping nmcli.

- Bluetooth Pairing: Device discovery, trusting, and connecting wrapping bluetoothctl. Replaced Overskride which was hit and miss.

- Mirec-Screen Recorder: Quick area/output recording triggers without opening heavy capture software like OBS that was literally melting my laptop insides.

- Audio In/Out.

- Kitty theme switcher.

- System Info - A Fastfetch replacement.

- Hyprland Keybinds.

- Aliases.

By removing bulkier system trays and background automation suites, the laptop stays cool, and the workflows trigger instantly via quick terminal widgets with keybindings.

I wanted to share this approach with the community to see if anyone else is optimising for ultra-low resource usage or fanless hardware. I would love to hear about any specific Zsh configurations, terminal optimisation tricks, or interactive custom fzf scripts you are running to keep your setups lightweight.


r/zsh • • Sep 05 '22

Announcement Announcing Spaceship v4.0 — a customizable Zsh prompt with asynchronous rendering

Thumbnail
spaceship-prompt.sh
94 Upvotes

r/zsh • • Jun 08 '26

Life is too short for a slow terminal

Thumbnail
mijndertstuij.nl
89 Upvotes

r/zsh • • Aug 29 '24 Take My Silver

Happy 15th Birthday, Oh My Zsh

88 Upvotes

Can you believe today marks 15 years since I embarked on this small project?

It's incredible to think that 2,400 developers have contributed their code to u/ohmyzsh since then.

I love open source.

First few days of commits.


r/zsh • • Feb 17 '21

A little ZSH cheatsheet

88 Upvotes

Hi there!

I recently wrote a small framework in ZSH, and that required me to look how to perform many things with the language that aren't always easy to find.

So I made a little cheatsheet, in case it can help anyone!

It shows the syntax for various processings you may have to perform (modifying an array properly, slicing, replacing, iterating over a global pattern silently...)

Here is the link, feel free to tell me if that helped you and/or if you see any error/potential improvement!

https://gist.github.com/ClementNerma/1dd94cb0f1884b9c20d1ba0037bdcde2


r/zsh • • Feb 21 '26

Make a backup of any file without typing the filename twice

86 Upvotes

TIL you can make a backup of any file without typing the filename twice

Instead of:

cp config.yml config.yml.bak

Just write:

cp config.yml{,.bak}

The shell expands `config.yml{,.bak}` into `config.yml config.yml.bak` before cp even sees it. The empty string before the comma is the original, `.bak` is the suffix.

Bonus: throw a datestamp in there:

cp config.yml{,.$(date +%F)}

Outputs something like `config.yml.2026-02-21`. Now your backups are timestamped and you can stop naming things `config.yml.bak.bak.old.final`.

Works in bash and zsh. Been using this for years and it still saves me a keystroke every single time.


r/zsh • • May 04 '20

Announcement zsh-autocomplete: IntelliSense-like find-as-you-type completion for Zsh

83 Upvotes

I wrote a little plugin to bring Zsh's completion into the 21st century.

Please try it out and let me know what you think! It adds only ~4 ms to your startup time. 🙂

Repo: https://github.com/marlonrichert/zsh-autocomplete

Demo: https://asciinema.org/a/326666


r/zsh • • Jun 13 '19

[Humor] Count on it, Wally is a tcsh user

Post image
83 Upvotes