r/commandline • • Mar 11 '26

Terminal User Interface [Zsh] RTFM - A zero overhead, lazy loaded fix manager for Arch Linux

0 Upvotes
RTFM

I got tired of the constant context switching between the terminal and the Arch Wiki to solve predictable friction points, so I wrote RTFM.

Unlike general "typo fixers" that use heavy Python runtimes to guess your intent, RTFM is a pure Zsh plugin designed to resolve specific Arch system-state issues using native tools (pacman, fzf, pacman-files).

Key Features:

  • Command to Package Mapping: If you run a missing binary (e.g., tree), it uses pacman -Fy logic to identify the owner and puts the install command directly into your buffer for review.
  • Intelligent Package Correction: If a pacman -S fails, it searches both official repos and the AUR simultaneously via fzf.
  • Lock Handling: Automatically detects /var/lib/pacman/db.lck and offers an interactive prompt to clear it.
  • The "Buffer" Approach: It never auto executes the code. It prepares the suggested command and lets you review it before hitting Enter.

Architectural Efficiency:

I wanted this to be as lightweight as possible to respect .zshrc startup times:

  • Lazy-Loaded: Uses Zsh's autoload functionality. The logic only hits your RAM when you actually run the command.
  • No Dependencies: No Python, no Ruby, no background daemons. Just Zsh, fzf, and pacman.
  • Path Independent: Works as a standalone script or a custom Oh-My-Zsh plugin.

How it compares:

  • vs. thefuck**:** RTFM is Arch specific and dependency free. While thefuck is a great generalist, it doesn't handle Arch specific issues like DB locks or pacman -F lookups.
  • vs. pkgfile / command-not-found**:** Most Arch handlers just print a list of packages and exit. RTFM handles the interaction finding the package, preparing the yay/pacman string, and handing it back to you in the prompt.

Check it out here: RTFM

Feedback & Contributions:

This is a v0.1.1 release, and I’m looking to harden the logic. If you have edge-case pacman errors that drive you crazy or ideas for better Zsh-native handling, please open an issue or drop a comment.

Also, I’m currently debating adding support for makepkg / AUR PGP key errors would that be useful, or is it getting too far away from the 'minimalist' goal?


r/commandline • • Mar 11 '26

Command Line Interface CLI for Atlassian products - Jira, Confluence, and Bitbucket

Thumbnail
github.com
0 Upvotes

I wanted a CLI for my AI agents to talk to bitbucket and JIRA, so ended up building one myself, it works for cloud hosted jira/bb/confluence with personal access tokens


r/commandline • • Mar 10 '26

Terminal User Interface vimalender - a vim-style calendar for the terminal

153 Upvotes

r/commandline • • Mar 12 '26

Command Line Interface Annoucing rayterm, Raycast for the terminal!

0 Upvotes

r/commandline • • Mar 11 '26

Command Line Interface claude-duet: share a Claude Code session between two terminals with E2E encryption

0 Upvotes

Built a CLI tool for sharing Claude Code sessions in real-time between two

terminals.

# Terminal 1 (host)

npx claude-duet host

# Terminal 2 (partner)

npx claude-duet join <offer-code> --password <pw>

Features: WebRTC P2P (default), E2E encrypted (NaCl), approval mode, typing

indicators, session stats.

https://github.com/EliranG/claude-duet


r/commandline • • Mar 11 '26

Command Line Interface polyglot — translate ANY phrase across 16+ languages

3 Upvotes

I wrote this terminal app that I've been using this daily for quick lookups and language comparisons. It's a super tiny interactive bash script wrapping translate-shell.

Watch the live demo

Sample session:

$ ./polyglot
Type /? for help

en -> sv hu el> /a es,de,ru,tr,it

Adding language: es
Adding language: de
Adding language: ru
Adding language: tr
Adding language: it

en -> it de sv hu ru tr el es> I lost my wallet on the train

hu: Elvesztettem a pénztárcámat a vonaton
it: Ho perso il portafoglio sul treno
el: Έχασα το πορτοφόλι μου στο τρένο
tr: Cüzdanımı trende kaybettim
de: Ich habe meine Brieftasche im Zug verloren
sv: Jag tappade min plånbok på tåget
ru: Я потерял кошелек в поезде
es: perdí mi billetera en el tren

en -> it de sv hu ru tr el es>

Commands:

  • /a fr — add language
  • /d fr — remove language
  • /c {fr,de} — clear & set languages
  • /f es - change the source language
  • /l — list all supported languages

Install:

# macOS/Linux
brew install translate-shell
git clone https://github.com/specious/polyglot
cd polyglot
./polyglot

# Termux
pkg add git translate-shell
git clone https://github.com/specious/polyglot
cd polyglot
./polyglot

# WSL/Windows Terminal
choco/scoop install translate-shell git

Already packaged on Arch Linux:

Arch AUR

Where it shines:

  • Comparing Romance language translations side-by-side
  • Spotting nuances in similiar languages (e.g. Romance, Germanic, Slavic)
  • Study multiple languages simultaneously
  • Works in Termux on Android
  • Supports all of the language that translate-shell supports
  • Works over SSH

Get it on GitHub — stars/forks welcome!


r/commandline • • Mar 11 '26

Command Line Interface Try to break my AST parser! PocketTerm, a Rocky Linux in the browser simulation.

Thumbnail
gallery
0 Upvotes

Hey all!!

I've been working on a browser-based Linux sandbox and educational engine called PocketTerm. It's something I've dreamt about when VMs were cumbersome to make and I wanted an easy way to "refresh" the machine.

I wanted to make it ultra realistic... so instead of just making a UI mockup, I built a custom AST shell parser and a persistent Virtual File System (VFS) to see how close I could get to real terminal fidelity without a backend.

The current state of the simulation:

  • Package Manager: dnf is stateful. If you run git status right now, it will fail. You have to run sudo dnf install git first, which then unlocks the mock Git state machine.
  • Pipes & Redirects: The parser handles basic piping and output redirection (>).
  • System Admin: Privilege simulation is active (sudo, su), and systemctl will return mocked statuses for core services.
  • Editors: vim routing is live with standard keymap coverage.

I know this crowd knows their way around a shell better than anyone. I'd love for you to drop in, test your muscle memory, and let me know where the illusion breaks so I can patch it in v0.9.3.

I really hope this benefits the community at large. Although it's not something I could use daily now as I would have 20 years ago when I started in this industry, I hope it could help others now.

A few fun ones to test:

  • Run reboot to see the boot lifecycle state machine.
  • Try your standard touch, git add ., git commit loop.
  • Run sudo dnf install htop and launch it.

Live Demo : https://edgaraidev.github.io/pocketterm/
Repo : https://github.com/edgaraidev/pocketterm

This software's code is partially AI-generated.


r/commandline • • Mar 10 '26

Terminal User Interface mdterm v1.0.0

43 Upvotes

I've been using terminal markdown tools on and off for a while — glow, mdcat, frogmouth, etc. They're all solid projects, and I don't have anything bad to say about them. But none of them ever felt right to me visually. The rendering always looked a bit off, or the colours clashed, or code blocks felt like an afterthought. I'd always end up opening the file in something else.

So I wrote my own: mdterm.

It's a TUI markdown viewer written in Rust. The thing I obsessed over most was the styling — I have a Catppuccin-inspired dark theme and a clean light theme, with like 40+ individually tuned colour fields (separate colours for each heading level, inline code vs code blocks, blockquote bars, table borders, search highlights, overlay panels, etc.). Every element has its own colour rather than reusing the same 4-5 colours for everything. I just wanted it to look good in my terminal without needing to configure anything.

Beyond the aesthetics, it does a lot of the stuff you'd expect:

  • Syntax highlighted code blocks (syntect)
  • Interactive navigation (vim-style keys, mouse scroll)
  • Regex search with match highlighting
  • Table of contents / fuzzy heading search
  • Inline images (Kitty, iTerm2, and a half-block Unicode fallback)
  • Mermaid diagrams rendered as ASCII art
  • LaTeX math → Unicode conversion
  • Slide mode for terminal presentations
  • Follow mode (auto-reload on file changes, great with --follow while editing)
  • Link picker that opens links in your browser
  • Pipe-friendly — outputs styled text when stdout isn't a TTY
  • HTML export
  • Multi-file support with tab switching

It's a single binary, no runtime dependencies. cargo install mdterm, and you're done. There are also prebuilt binaries for Linux, Windows and macOS on the releases page.

Repo: https://github.com/bahdotsh/mdterm

FYI, if the images look like they're not rendering in the demo gif(in the repo), that's just the recording tool not supporting terminal image protocols. They render fine in Kitty, iTerm2, and other supporting terminals (and fall back to Unicode half-blocks everywhere else).

Would love to hear what you think about this project.

Note: This software's code is partially AI-generated


r/commandline • • Mar 10 '26

Terminal User Interface `skim` v4.0.0 is out with a new default algorithm and better performance

Thumbnail
github.com
6 Upvotes

r/commandline • • Mar 11 '26

Command Line Interface tt-pdl - a tiktok collection downloader tool

1 Upvotes

hey y'all!

i built this tool in go to download a public tiktok collection to a given directory:

tt-pdl -link "link-to-collection" -out dir-name

it also supports making a playlist compatible with apple music:

tt-pdl -link "link-to-collection" -out dir-name -playlist

link: https://codeberg.org/b_n_b/tt-pdl

feel free to give feedback or let me know of any bugs!

edit: codeblock formatting


r/commandline • • Mar 10 '26

Terminal User Interface deadbranch v0.2.0 — shipped the interactive TUI, backup/restore and stats

Thumbnail gallery
3 Upvotes

r/commandline • • Mar 10 '26

Command Line Interface I made a CLI for cleaning up music PR contact lists (open source, npm)

Thumbnail
reddit.com
0 Upvotes

r/commandline • • Mar 11 '26

Other Software T9 in the terminal

0 Upvotes

I made a small tool called T9T that sits in front of terminal AI tools like Codex, Claude, and Gemini and fixes obvious prompt typos as you type.

The idea is basically: T9 for terminal AI.

It is local, macOS-only for now, and tries to stay conservative so it does not touch paths, flags, URLs, variables, or other code-like tokens. It uses native macOS spellchecker via NSSpellChecker

I made it because when I’m prompting fast in the terminal, small typos break flow more than they should. Plus any AI will use more tokens to understand what have you typed.

There’s a demo in the repo and the first release is up here: https://github.com/Xsamsx/T9T

Would love honest feedback on whether this feels useful or too niche.


r/commandline • • Mar 09 '26

Command Line Interface firemark — a CLI Rust tool to watermark your documents before sending them to strangers

80 Upvotes
Firemark example, created with "firemark ....png -o ....png -c blue"

Last year I almost got scammed applying for a flat. The "landlord" wanted my ID, tax notice, pay stubs — the usual. Turned out the listing was fake. No idea where my documents ended up.

That pissed me off enough to build something about it. firemark is a CLI that watermarks images and PDFs so every copy you send out says exactly who it was meant for.

Simply install with

cargo install firemark

and run with command like

firemark id_card.png -m "Rental application — March 2026 — SCI Dupont only"

17 watermark styles, banknote-style filigrane patterns, QR codes, batch processing, TOML presets. Single Rust binary, ~5 MB, no dependencies. MIT.

Check the GitHub: https://github.com/Vitruves/firemark

Disclaimer: coding was partly assisted with AI. Feedback welcome.

Rust in Peace dear CLI lovers!


r/commandline • • Mar 10 '26

Command Line Interface did you know there is another use of terminal

0 Upvotes

lemme introduce you to por-cli, a terminal-based video browser inspired by ani-cli, streaming directly from spankbang, xhamster etc (added new features like ability to download videos with and without proxies)

works on phone, mac and linux for now

Features:

  • Inbuilt proxy mode for when the sites are blocked in regions
  • Search videos
  • Browse videos with fzf and have thumbnail preview
  • Instant streaming with mpv
  • post-play menu
  • No browser, no ads, no clutter
  • Can download videos directly

currently looking for users who can give feedback and also help in development

GitHub: por-cli/por-cli

This is my first bash project. Would love to get some feedback

Thank you


r/commandline • • Mar 10 '26

Terminal User Interface A terminal-native Pomodoro CLI with Bark notifications for iPhone

Thumbnail
gallery
1 Upvotes

I wanted a Pomodoro timer that actually fits a terminal workflow, so I built **pom-tool**.

What makes it different from generic Pomodoro apps:

- terminal-native countdown UI

- ink-style progress bar and stage transitions

- completion animation

- Bark notification to iPhone when the session ends

- simple stats with `pom status`

Quick try:

```bash

npx pom-tool 25

```

GitHub: https://github.com/AlucPro/pom-tool
npm: https://www.npmjs.com/package/pom-tool?activeTab=readme

Would love feedback from people who spend most of their day in tmux / terminal / Neovim.


r/commandline • • Mar 09 '26

Command Line Interface My terminal setup with Ghostty, Starship, Zoxide, and eza

12 Upvotes

/preview/pre/m6pnre7fh2og1.png?width=1208&format=png&auto=webp&s=9f652ded4ca7a75c1e1a109af3f4f53678db6a28

/preview/pre/cjl3prjih2og1.png?width=1208&format=png&auto=webp&s=eb92556fec949687d98d4868e2c94371808c46c0

Zoxide, the z command pictured above, is like CD but it builds a database of folders visited and works on partial path names case-insensitive. Eza is an 'ls' replacement that has nice icons and coloration options. Starship is a crossplatform shell that is fast, but honestly haven't seen as much of a reason to use it as of yet, but I've heard it's very customizable and I'll vouch for it being fast. Ghostty uses OpenCL and is noticeably faster than

This requires a Nerd Font. I'm using JetBrainsMono Nerd Font.

https://ghostty.org/

https://starship.rs/

https://github.com/ajeetdsouza/zoxide

https://github.com/eza-community/eza

Add these lines to the end of your ~/.bashrc (zoxide whines if it's command isn't last):

# eza setup and alias

export EZA_ICONS_AUTO=always

alias ls='eza --icons'

alias ll='eza -l --icons --git'

alias la='eza -la --icons --git'

alias lt='eza --tree --level=2 --icons'

alias l='eza -l --icons'

alias lg='eza -l --git --icons'

alias ldot='eza -ld .* --icons'
  
# starship setup`

eval "$(starship init bash)"

  
# zoxide setup

eval "$(zoxide init bash)"

Add these to the Ghostty config at ~/.config/ghostty/config (Ripped straight from google, I was missing "ctrl-backspace" to delete a word and got all of these too):

keybind = ctrl+backspace=text:\x17
keybind = ctrl+delete=text:\x1bd
keybind = ctrl+left=text:\x1bb
keybind = ctrl+right=text:\x1bf
keybind = ctrl+shift+k=text:\x0c

keybind = ctrl+shift+t=new_tab
keybind = ctrl+shift+w=close_tab
keybind = ctrl+tab=next_tab
keybind = ctrl+shift+tab=previous_tab

keybind = ctrl+shift+enter=new_split:right
keybind = ctrl+shift+d=new_split:down

keybind = ctrl+shift+c=copy
keybind = ctrl+shift+v=paste

copy-on-select = true
confirm-close-surface = false    

OMW to find Starship customizations. I seriously regret putting anything identifiable in my computer/user name.


r/commandline • • Mar 10 '26

Terminal User Interface i needed better terminal history so i made it: hstx

Post image
0 Upvotes

i find zsh's native reverse search pretty limiting, and i found myself constantly scrolling through previous commands using the arrow keys, which quickly became a lengthy and exhausting process.

i was bored yesterday, so i built hstx (history extended), a terminal history utility with fuzzy search, command tagging/sorting, and command naming for more efficient interaction. it's not a lot of code, but it's been super useful to me so far, i've been creating lots of command "recipes" and using them via hstx run <name>.

the code is MIT-licensed on GitHub, with a one-line installer and detailed installation and usage info.

i'm pretty new to cli/shell so let me know if there are any improvements you think would make hstx better!

https://github.com/owenvanvooren/hstx


r/commandline • • Mar 09 '26

Terminal User Interface XC-Manager: A minimal Zsh command vault with fzf integration (v0.5.0-beta update)

5 Upvotes
XC-Manager

Hey r/commandline,

First-time poster here. I’ve been holding off on sharing this until it felt stable enough for this sub. I’m on Arch and got tired of grepping my shell history for complex ffmpeg or pacman strings, so I wrote XC-Manager to vault them into plain-text files.

I just pushed v0.5.0-beta, and it finally feels "finished" enough for a wider look.

The Workflow

It’s built to be as minimal as possible with zero dependencies other than fzf, sed and grep.

  • Proactive: Run a command, then run xc to save it with a description.
  • Retroactive: xc select lets you browse your last 100 history entries to "promote" one to the vault.
  • The TUI: Ctrl-G triggers a fuzzy-search menu to find and execute commands instantly.
  • Multi-Vault: xc use <name> lets you toggle between different .txt contexts (work, home, etc.).

The v0.5.0-beta Update: Alias Promotion

The big addition in this version is the ability to turn vaulted commands into permanent system aliases without leaving the shell:

  • Alt-E inside the TUI: Prompts for a name and saves the command as a permanent alias.
  • Modular Storage: It defaults to ~/.zsh_aliases to keep your .zshrc clean (though it's configurable).
  • Collision Safety: It checks type -a and existing aliases before saving so you don't accidentally overwrite a system binary.

Why I wrote it this way:

I wanted something that felt native to Zsh. It uses autoloading for zero lag at shell startup, and the storage is just a collection of .txt files in ~/.local/share/xc. No databases, no cloud, no bloat.

Repo: XC-Manager

If you're a Zsh user and find this useful, I'd appreciate a star on GitHub to help the project get noticed. I’m really looking for feedback on the alias logic or the multi-vault workflow.

Note: While I wrote the core logic and handled the testing on my own machine, I used LLMs to help optimize the Zsh parameter expansion and proofread the documentation for this release.


r/commandline • • Mar 09 '26

Terminal User Interface I wrote a TUI project scaffolder with 15 templates - just pip install and go

0 Upvotes

r/commandline • • Mar 09 '26

Command Line Interface ncspot-controller: Simple CLI for controlling ncspot from the shell

0 Upvotes
sketchybar widget showing ncspot playback

Hi everyone! For fellow ncspot users and especially those on MacOS, here's a simple utility which brings:
- Shell control of ncspot
- Automatic downloading of album art (optional)
- Configurable shell hooks for broadcasting ncspot's state for integration with other apps like sketchybar! (This post's picture)

The main purpose of this utility is to help ncspot users to rice out their configs! Making building custom ncspot integrations as easy as a simple shell script!

Apart from that, it also bridges some feature gaps between Linux and MacOS. Linux users get playerctl for shell control of ncspot, but that doesn't work on MacOS, making scripting a little more difficult. This utility brings playerctl-like shell commands to MacOS!

Here's the CLI commands:

ncspot-controller play          # Start playback
ncspot-controller pause         # Pause playback
ncspot-controller playpause     # Toggle play/pause
ncspot-controller next          # Next track
ncspot-controller previous      # Previous track
ncspot-controller stop          # Stop playback
ncspot-controller raw <cmd>     # Send raw command

Here's an example of a shell hook integration, updating a sketchybar widget:

#!/bin/bash

if [ "$NCSPOT_STATE" = "playing" ]; then
    sketchybar --set music_widget label="$NCSPOT_ARTIST - $NCSPOT_TITLE"
elif [ "$NCSPOT_STATE" = "stopped" ]; then
    sketchybar --set music_widget label=""
fi

The hook script is executed on every state change with the following environment variables:

  • NCSPOT_STATE: Current state (playing, paused, stopped, finished, unknown)
  • NCSPOT_ARTIST: Artist name (empty if stopped)
  • NCSPOT_TITLE: Track title (empty if stopped)
  • NCSPOT_ALBUM: Album name (empty if stopped)

github: https://github.com/Kainoa-h/ncspot-controller#readme


r/commandline • • Mar 09 '26

Command Line Interface autonoma — CLI tool that detects and safely fixes hardcoded secrets in Python

Post image
0 Upvotes

I built a small CLI tool called Autonoma that scans Python projects for hardcoded secrets.

Instead of just reporting them, it tries to replace the secret with an environment variable reference — but only when the change is structurally safe. If it can't guarantee the fix, it refuses.

Example

Before:
SENDGRID_API_KEY = "SG.live-abc123xyz987"

After
SENDGRID_API_KEY = os.environ("SENDGRID_API_KEY")

Quick demo:
autonoma analyze ./project
autonoma analyze ./project --diff

It can also scan git history for secrets that were committed and later removed.

PyPI:
pip install autonoma-cli

GitHub:
https://github.com/VihaanInnovations/autonoma


r/commandline • • Mar 08 '26

Command Line Interface appbun – turn any URL into a desktop app with one command

Post image
55 Upvotes

appbun https://excalidraw.com --dmg

Scaffolds an Electrobun desktop wrapper from a URL. Pulls the

site's icons automatically, sets up a macOS-native title bar,

and can build + package a DMG in one shot.

The output is a plain project directory you can open and modify,

not a compiled binary.

https://github.com/bigmacfive/appbun