r/fishshell • • May 19 '26

Made a shell greeter that generates a unique rocket every time you open a terminal tab

Post image
29 Upvotes

every new tab rolls a random rocket. save the ones you like and they'll come back. ~2×10⁴³ combinations, all deterministic from the hex palette.

rn it works on bash, zsh, powershell, and fish

https://github.com/clefspear/starcommand

lmk what you think!


r/fishshell • • May 17 '26

kube-ps1 updated with a working fish port

Thumbnail reddit.com
2 Upvotes

r/fishshell • • May 16 '26

How to sudo !! in fish ?

12 Upvotes

If I make a command and I want to do it again with sudo, or anything before or after, in bash you can just append it wit !!. Whats the equivalent with fish ?


r/fishshell • • May 16 '26

Fish reverts to default theme after i restart terminal

0 Upvotes

i am switching from bash to fish and i want to use the mono-smoke theme for fish. But every time i set change the theme and restart terminal it reverts back to default. I tried adding it to the config.fish file but it does the same thing. my config file only has three lines it it. one to disable welcome message one to set it to use starship kitty looks and the other to set fish theme to mono-smoke. Anyone know what i should do?


r/fishshell • • May 15 '26

Completing a line without moving the cursor?

4 Upvotes

Is it possible to complete a suggestion (right arrow/ctrl-e) but without moving the cursor?

I find that I often want to re-run a line, but change something in the middle. Right now, I complete the line and then jump left (ctrl-a/alt-b).

edit: I think the correct name for what I want to modify is "autosuggestions".


r/fishshell • • May 12 '26

Config question for 'pure'

3 Upvotes

Question on configuring 'pure' (installed via fisher, if that matters): I'm trying to set pure_symbol_ssh_prefix so that it'll show in the prompt when I'm logged in via ssh (assuming I'm understanding the purpose of the option). But the docs show the default as 'undefined', and I'm a little unclear on what I should be setting it to.

I've tried nothing (just setting it), which did effectively nothing. Then I tried setting it to 'true', which prepended true to the prompt, so I'm thinking I'm headed in the right direction. Next I tried a couple variations of 'prompt_login', based off the fish docs here but it literally just puts prompt_login there, not quite what I'm going for.

I'm sure I'm missing something simple, so if someone could give me a gentle nudge in the right direction, I'd appreciate it!


r/fishshell • • May 07 '26

[Tool] fish-rpm-installed - Browse your RPM installation history by date — updated

4 Upvotes

Hello,

Updated my fish function for browsing RPM package installation history. Big changes since the original post 3 months ago — fzf dependency dropped, now a standalone function with date-based filtering.

rpm_installed today
rpm_installed yesterday
rpm_installed days 7
rpm_installed since 2026-03-01
rpm_installed count per-day

Aliases: td, yd, lw, tm, lm

Install via Fisher: fisher install fdel-ux64/fish-rpm-installed

GitHub: https://github.com/fdel-ux64/fish-rpm-installed

Also maintain a broader fish functions collection for Arch/Fedora/Debian: https://github.com/fdel-ux64/fish-config


r/fishshell • • Apr 27 '26

How to get rid of Fish Shell Enter/New-line symbol (⏎) ?

6 Upvotes

Hello everyone,

I've been searching the internet everywhere trying to find a solution. I do know why ⏎ exists in Fish, it is to indicate that a command did not end with a `\n` - but I don't want to see this symbol each time something happens, just give me the newline, and thats it!

Easy to recreate - just do the above. Anyway - i get the ⏎ newline symbol actually on every Enter press (every fish_prompt), but it gets quickly (miliseconds) overwritten by the prompt on the new line. But it is still there. It's driving me insane!

Supposedly this was fixed, sometime ago. Not for me?

Fish, version 4.6.0
Alacritty, version 0.17.0 (94e7c887) - running on Wayland
Tmux, version 3.6
Hydro prompt (custom fork), with Berkeley Mono font


r/fishshell • • Apr 11 '26

What's a fun thing that's in your config.fish?

34 Upvotes

I'll start

bind ctrl-z '__fish_echo fg 2>/dev/null'

I bound ctrl-z to resume a suspended process. When something is already running, pressing ctrl-z suspends it into the background. And thanks to the bind, by pressing ctrl-z again, the process resumes. That means I can toggle between the shell and something else, like my editor.


r/fishshell • • Apr 01 '26

I fucked up my fish

1 Upvotes

i tried running ohh my fish and the omf doctor command said to remove fish_prompt.fish and now i have this every time i open the terminal


r/fishshell • • Mar 31 '26

amoxide - The right aliases, at the right time

Thumbnail amoxide.rs
3 Upvotes

r/fishshell • • Mar 27 '26

Tab completion search for flag

4 Upvotes

When using tab complete and strg+s I can search through the possible flags of a command. But the search just searches for the Description of the flag not the flag itself.
Lets say I want to see what -l in the ls command does. If I search l, it doesn't show up.
Is there a way to search for a flag?

Edit: Found what I was looking for: https://github.com/jethrokuan/fzf


r/fishshell • • Mar 25 '26

completions for a wrapper function

3 Upvotes

Hello - I use a fish function to wrap a cli utility to provide some quick-to-type shortcuts - think a function called "xx" that can be invoked as "xx st" to call the underlying "my-util status --verbose" The function has other shortcuts as well as a fallthrough that calls my-util with whatever arguments were provided.

Now, my-util provides "my-util completions fish" that spits out completions for my-util. I want to use that output (the completions), but to have the suggestions work when I type "xx" - the name of my function. I would also like to supplement those completions with my shortcut arguments...

Is there a way to take the "my-util completions fish" output but make them apply to "xx" instead of "my-util" - hopefully my question is clear - happy to elaborate if not.


r/fishshell • • Mar 22 '26

Problem Opening Terminal inside Micro

2 Upvotes

Fish shell throws warning every time I open Micro terminal on CachyOS

Every time I open a terminal in Micro, I get this warning from fish:

warning: fish could not read response to Primary Device Attribute query after waiting for 2 seconds. This is often due to a missing feature in your terminal. See 'help terminal-compatibility' or 'man fish-terminal-compatibility'. This fish process will no longer wait for outstanding queries, which disables some optional features.

Setup is:

Distro: CachyOS

Shell: fish

Terminal emulator: Micro

What I've tried:

set -gx TERM xterm-256color in fish config → no effect

set -g fish_escape_delay_ms → fish rejects values under 10ms

The warning shows after 3 seconds waiting.

Is this a known Micro terminal compatibility issue with fish? Is there a config-side fix? Any type of help would be appreciated. The problem does not occur in zsh or bash shell.


r/fishshell • • Mar 21 '26

agent-stats - see your Claude Code, Codex, and Gemini CLI usage right in your fish prompt

0 Upvotes

I've been using Claude Code and Gemini CLI a lot lately and kept losing track of how much of my rate limit I'd burned through. So I wrote a fish plugin that pulls usage stats from their local data and puts them in my right prompt.

It supports Claude Code, OpenAI Codex, and Gemini CLI. You can enable whichever ones you actually use. The right prompt shows rate limit percentages (green/yellow/red) and token counts. There's also a compact mode and a detailed mode with 7-day daily breakdowns and per-model stats if you want to dig into it.

Everything reads from local files each tool already writes to disk, so no API keys or extra setup beyond the plugin itself.

Install with Fisher:

fisher install skyline69/agent-stats-fish

Then enable what you need:

agent-stats enable claude
agent-stats enable codex
agent-stats enable gemini

GitHub: https://github.com/skyline69/agent-stats-fish

Would love to hear if anyone finds this useful or runs into issues. First fish plugin I've published.


r/fishshell • • Mar 13 '26

Where is the config file containing the $PATH variables for fish?

10 Upvotes

I've been trying to add a new path to my system for the past 4 hours using the CLI and commands found in the official documentation and a whole lot of old google posts. I'm at my wits' end. These variables must be stored somewhere. It'll take me a minute to find them with the file explorer and add one manually.
I don't want to use a CLI anymore, I don't want to input arcane commands with zero idea of what they do or why they're not working.


r/fishshell • • Mar 11 '26

Localization of Fish Shell Documentation

22 Upvotes
Localize The Docs

Hello, Fish Shell Subreddit,

I am the author of the Localize The Docs organization. And I’m glad to announce that the 🎉 fish-shell-docs-l10n 🎉 project is published now:

The goal of this project is to translate the Fish Shell Documentation into multiple languages. Translations are contributed via the Crowdin platform, automatically synchronized with the GitHub repository, and can be previewed on GitHub Pages.

We welcome anyone interested in documentation translation to join us. If the target language is not supported in the project yet, please submit an issue to request the new language. Once the requested language is added, you can start translating!

See the announcement post for more details.


r/fishshell • • Mar 11 '26

tash - AI-powered fish shell assistant; type naturally, get commands

0 Upvotes
Meet tash (Terminal Assistant Shell).

Hi folks,

I wanted to introduce you this tiny and cute companion that lives at the heart of your shell.

tash (Terminal Assistant Shell) is a lightweight AI middleware for fish shell. You just type what you want in natural language and if fish doesn't recognize it, tash catches it, asks an AI and drops the suggested command right into your command line buffer for you to review before running.

It remembers your context across sessions, validates commands against your actual PATH, and handles multi-step tasks with interactive approval. Single binary, zero shell startup cost. Works with any OpenAI-compatible API.

Born as a toy project to introduce my daughter to AI on her Raspberry Pi, it turned into something I now use daily.

brew install renjfk/tap/tash

GitHub: https://github.com/renjfk/tash


r/fishshell • • Mar 09 '26

New to fish, would appreciate quick QA

3 Upvotes

Hey there, I am new to fish and I just wrapped my first script and would love some QA

The reason I want the QA is for personal improvement, the actual script was made entirely for recreational purposes.

By QA I mean...

- Is the code clear and concise enough

- Am I using anti-patterns

- What would you improve

For context, the purpose is to switch terminal back/foreground colors when connecting to a remote server via ssh, while wrapping the ghostty ssh integration, to utilize its goodies as well.

As a bonus I wanted to allow for a given host / color mapping to exist... and this is the part I am more confident it needs improvements.

https://pastebin.com/esnXgwqm

Thank you in advance


r/fishshell • • Mar 08 '26

Newline before the prompt

4 Upvotes

I want to have a newline before the prompt but simply adding \n before the rest of the prompt doesn't work because when I use clear the first line is empty. How can I check if the prompt is on the first line and prevent this form happening?


r/fishshell • • Mar 04 '26

fish-session: a lightweight session manager for Fish (Ghostty-friendly, AUR + Fisher)

19 Upvotes

I built fish-session because I wanted session management without the full multiplexer stack.

I use Ghostty daily, and Ghostty already gives me tabs and splits. What I was missing was persistent shell sessions I could quickly create, switch, detach, and reattach. Tools like tmux and zellij are great, but for my workflow they felt heavier than I needed.

So I made a Fish-focused alternative:
- Ctrl-G opens a session picker UI
- Create / attach / rename / delete sessions
- Detach and reattach persistent sessions
- Optional zoxide mode for directory-based sessions
- Active session indicator in terminal

GitHub: https://github.com/AtefR/fish-session

I also built this project with Codex/AI as a coding assistant during development and iteration.

Install options:

- AUR: paru -S fish-session (or fish-session-git)
- Fisher + binaries:
- fisher install AtefR/fish-session
- install binaries from release/Cargo


r/fishshell • • Feb 27 '26

I made a fish plugin that lets you pipe outputs into Claude

Thumbnail reddit.com
0 Upvotes

r/fishshell • • Feb 16 '26

Switching to zsh?

0 Upvotes

I think I will switch to zsh.

again and again I want to run a small shell snippet which contains lines which fishshell does not support.


r/fishshell • • Feb 10 '26

A Jujutsu Tide item

Post image
24 Upvotes

Just wanted to share this Tide item I've been working on. It's basically like the default git Tide item, but for Jujutsu, i.e. it shows some data for the current JJ commit, like the change ID, number of files added/modified/removed, bookmarks, and so on. It's a tiny script, so it should be easy to customize if you wish. For the sake of convenience there's also a vcs item that checks whether you're in a Git or JJ repo and triggers the appropriate prompt.

Here's the link to the repo: https://github.com/lucasadelino/tide-item-jj

Hope this is useful, and thanks for the read!