Repository navigation
zsh: fish-style suggestions/highlighting/history search; fix "Unable to find terminal" - #201
Merged
Merged
Conversation
…minal=true apps Coming from fish (CachyOS's default), Stoa's zsh had none of what fish does out of the box. .zshrc now sources zsh-autosuggestions, zsh-syntax-highlighting and zsh-history-substring-search from the Arch paths when installed, coloured with the Stoic palette, with ↑/↓ (and k/j in vi mode) searching history for what is typed; post-install.sh installs them plus zsh-completions. commit-all pulls with --rebase like stoa-sync. Opening a text file from Thunar failed with "Unable to find terminal required for application": the editor GIO picked was a Terminal=true app (nvim) and GIO's built-in terminal list has no kitty. GIO asks xdg-terminal-exec first, so post-install.sh installs it and install.sh writes ~/.config/xdg-terminals.list = kitty.desktop when absent. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LviacJW5Bp5ywJzNWy8AWM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two gaps found moving a CachyOS install from fish to Stoa's zsh.
zsh had none of what fish does out of the box
shell/.zshrcnow sources three plugins from their Arch paths (/usr/share/zsh/plugins/...), but only when they are installed:k/jin vi command mode, search history for what is already typed.Order follows upstream: syntax-highlighting after the other widgets, history-substring-search after it.
post-install.shinstalls these pluszsh-completions.commit-allnow pulls with--rebase, likestoa-sync."Failed to open file .zshrc — Unable to find terminal required for application"
Opening a text file from Thunar went through GIO to a
Terminal=trueeditor (nvim, when VS Code is not installed). GIO's built-in terminal list does not include kitty. GIO asksxdg-terminal-execfirst, sopost-install.shnow installs it andinstall.shwrites~/.config/xdg-terminals.list=kitty.desktopwhen that file is absent.Test plan
zsh-autosuggestions,zsh-syntax-highlighting,zsh-history-substring-search,zsh-completions,xdg-terminal-execin extra; the config file name from the xdg-terminal-exec README)zsh -non.zshrc. With the plugins absent it loads clean and binds nothing. With them installed at the Arch paths (cloned from upstream), it binds 4 history-substring keys and vicmdk, and applies the palette styles.tests/run.sh --strict: 18/18sudo pacman -S zsh-autosuggestions zsh-syntax-highlighting zsh-history-substring-search zsh-completions xdg-terminal-exec, re-runinstall.sh(or create~/.config/xdg-terminals.list), then open a new terminalGenerated by Claude Code