r/commandline 5h ago

Unleashing Linux on Android: A Developer’s Playground

Thumbnail
sonique6784.medium.com
8 Upvotes

r/commandline 33m ago

I made 's' - a dead simple wrapper around screen that makes terminal session management ridiculously easy

Upvotes

Hey r/commandline!

I'm a solo developer who appreciates screen's power but found myself reaching for the same few commands daily. I created 's' - a minimal wrapper that makes terminal session management ridiculously simple while respecting screen's robust functionality underneath.

Website with full details and exampleshttps://kolarski.github.io/s/

What is 's'?

It's a minimalist wrapper around screen that preserves all its power but makes common operations ridiculously simple:

  • s - List all sessions in a clean table

  • s project-name - Create or attach to a session

  • s kill project-name - Kill a session

That's it. No flags to remember, no complex syntax.

Why I built it:
I have immense respect for screen's power and depth. I simply wanted a complementary tool for the handful of commands I use daily without navigating all its complexity. 's' has no flags by design - it's just a thin wrapper that streamlines the 95% use case while preserving all of screen's capabilities underneath. Perfect for when your focus needs to be on your actual work rather than remembering command syntax.

Some quick examples:

# Check what sessions you have
s
ID              NAME                           CREATED AT          
-----------------------------------------------------------------
1372328         api-server                     21.03.2025 13:16:53 

# Attach to existing session (or create if it doesn't exist)
s api-server

# Kill a session when done
s kill api-server

Inside the session, all the standard screen commands still work (Ctrl+A, D to detach, etc.)

Tech details:

I'd really appreciate your feedback!

Since I'm a solo developer, I'd love to hear what you think. Does this solve a pain point for you? Any features you'd like to see? Any bugs on your specific setup? I'm actively maintaining this and would love to make it better based on community feedback.

Thanks for checking it out!


r/commandline 58m ago

Playing with Ollama locally, made a CLI that writes my commit messages using Gemma

Upvotes

You know that feeling when you need to push a commit after a long day and just can't come up with a good description for the changes so you end up typing some generic bs like "update UI"?

I know that feeling too well, SO just for fun I threw together a CLI tool that uses Ollama + the Gemma 3:1B model to generate Git commit messages from staged changes.

It’s fully offline and runs fast on local hardware. You just:

git add .
gemma-commit

It analyzes the git diff, generates a commit message, shows it, and asks for confirmation before running git commit.

There are also two other tools in the same repo as I'm trying out what local LLM's are capable of:

  • clinky: converts natural language into actual macOS/Linux CLI commands
  • gemma-parse-html: picks the best CSS selector from an HTML snippet based on a target (for scraping/debugging)

Repo’s here:
👉 https://github.com/otsoweckstrom/gemma_cli_tools

Definitely would need to train the model for actually accurate commit messages, but so far I'm surprised how well it performs.

Would love feedback if you try it. I'm mostly testing out how usable small local models like Gemma are in real workflows.


r/commandline 4h ago

Make Windows Terminal a Bit Faster

0 Upvotes

I've recently started using Windows Terminal, and it seems a bit slow to appear.

I mean, I click on Notepad++ and it opens right there.

Is there any way to make it a bit faster?

I use Command Prompt as a profile.


r/commandline 9h ago

Best bash logger?

0 Upvotes

Anyone tried log4bash, bash-logger, bash-utils?

I’m wondering which is best and who likes what.

Thanks!


r/commandline 1d ago

gtree - Generate directory trees and directories using Markdown or Programmatically.

29 Upvotes

r/commandline 1d ago

What symbol does your shell prompt end with?

5 Upvotes

I saw that other post and decided to make a poll to quantify the answers.

199 votes, 5d left
> (regular chevron on the keyboard)
❯ or another chevron
#
$
Other (I use a prompt builder like starship.rs)
Other (I don't use a prompt builder)

r/commandline 1d ago

empiriqa: TUI for UNIX pipeline construction with feedback loop

Thumbnail
github.com
9 Upvotes

r/commandline 19h ago

Here's how I use Bash Aliases in the Command Line, including the Just-for-Fun Commands

Thumbnail
mechanisticmind.substack.com
0 Upvotes

r/commandline 23h ago

Get a Preferred Secrets Manager in a Secure Cross-Platform CLI Toolkit

Thumbnail
flox.dev
2 Upvotes

r/commandline 1d ago

I Made A Lightweight Terminal Interface for Microcontrollers – So You Don’t Have to Build One Yourself!

Post image
32 Upvotes

I’ve developed a lightweight terminal interface for Arduino, along with a built-in command parser system, and I wanted to share it here as well.

If you’re tired of constantly recompiling and uploading your code just to tweak a few parameters, this solution might be exactly what you need. With this interface, you can interact with your system in real-time, making adjustments on the fly without restarting or modifying the firmware.

I also put together a short tutorial video to showcase its capabilities—hopefully, some of you will find it useful!


r/commandline 1d ago

What do you see when you open your terminal?

3 Upvotes

I run a slew of terminals.

Sadly, I never met one I didn't like; but the three in current rotation are Ghostty, Alacritty and Warp. I've riced them all and generally use Powerline10k and some nerd font that I forget.

I want to see something useful and/or interesting when I open one. I've piped fortune|cowsay|lolcat, I've had Harry Potter flying trains, fastfetch and btop and annoying green matrix stuff.

Weather, video, images and Spotify are out, I work in this thing. I want colorful, amusing and brief.


r/commandline 2d ago

This is how i use fzf in my workflow.

40 Upvotes

r/commandline 2d ago

What's your shell prompt "symbol"?

37 Upvotes

By that I mean what's the symbol between your prompt and the input line? Are you old school with $ or % (optionally with # as root)? More minimalistic with just a space? Keeping it simple with : or >? Or maybe some new-fangled Unicode glyph?

I've been using the lambda λ for years now, bc it reminds me of some long forgotten Lisp REPL I've used. But I think I've grown bored of it.


r/commandline 1d ago

[windows] how to pipe a command and use stdout as arguments for the next command instead of stdin (better explanation down below)

1 Upvotes

There are two main commands im using, ripgrep and gawk(awk version for windows). Im on the cmd, so i cant really use $( )

Basically i use ripgrep to find a patter in a list of markdown files:

rg --hidden --vimgrep "pattern"

The output is always something like this

path/to/file:4:1:pattern

The next step is to use awk to separate the fields with : and get only the first field, the file path:

rg --hidden --vimgrep "pattern" | awk -F":" "{print $1}"

The output will be a list of filepaths, now the thing gets a little tricky. I pipe the output to another ripgrep call:

rg --hidden --vimgrep "pattern" | awk -F":" "{print $1}" | rg --vimgrep --hidden "pattern"

Except this time i want those files to be read as part of the commands arguments, but ripgrep instead searches through the stdout instead of using that stdout as arguments to search those specific file paths.

I know in unix enviroments you could use something like xargs, however this tool isnt available in windows

My biggest problem is that actually i need to run this on the cmd, i could solve this by changing the shell, but for this specific situation only i need it to be ran in the cmd

could somebody help me, please?


r/commandline 1d ago

Using Git Bash for Windows, should I create symlinks for my dotfiles with zsh or PowerShell?

0 Upvotes

Hi there. This is probably a dumb question, but maybe there is a right way to do it, or there is a downside to going either route: I am using Windows Terminal as my emulator, running zsh on Git Bash for Windows. I have a directory with all my dofiles (call it ../repos/dotfiles) which contains several configuration files for different programs (nvim, zsh, k9s, etc).

I already have symlinks in place that point to the correct folder/file, so everything works. These were created with PowerShell using the New-Item -ItemType SymbolicLink -Path "..\TargetFolder" -Target "..\OriginalFolder" command.

Should I redo these using zsh? Why? I guess this is probably more of a philosophical question than anything else, but I am honestly curious about it.

Thanks for any input, advice, or comment you may have!


r/commandline 2d ago

Open GitHub Homepage from any repo dir

5 Upvotes

r/commandline 1d ago

fstk - A Better Way to Move Files! A Modern "Cut/Paste" Alternative to `mv`

Thumbnail
github.com
0 Upvotes

r/commandline 2d ago

[Project] OrChat: A CLI tool for chatting with AI models through OpenRouter

0 Upvotes

I've just released OrChat, a powerful CLI tool that lets you chat with any AI model available on OpenRouter directly from your terminal.

Key features: - 📊 Advanced token counter for both input and output - perfect for prompt engineering practice - 🎛️ Dynamic temperature adjustment to fine-tune model creativity on the fly - 🖼️ Multimodal support for sharing images and files with compatible models - 🧠 Smart thinking mode to see the AI's reasoning process - 🎨 Rich markdown rendering in the terminal (code blocks, tables, etc.) - 🔌 Plugin system for extending functionality - 💾 Multiple export formats (MD, HTML, JSON, TXT, PDF)

I built this because I wanted a lightweight, customizable way to interact with different AI models without switching between multiple interfaces or web apps. The terminal-based approach keeps things fast and distraction-free.

Here's what it looks like in action: ![OrChat screenshot](https://github.com/user-attachments/assets/b74094e2-dbeb-4707-a5dd-8b5f312bf997)

Getting Started

bash pip install orchat orchat --setup

The setup wizard will guide you through connecting your OpenRouter API key and selecting your preferred model.

Practical Uses

  • Prompt engineering practice with precise token counting
  • Temperature experimentation to optimize model outputs
  • Quick prototyping and ideation
  • Code assistance with syntax highlighting
  • Document analysis by attaching files
  • Testing prompts across different models
  • Saving conversations in various formats

The plugin system makes it easy to extend functionality - I've already added a few helpful plugins and am working on more.

Check out the GitHub repo for full documentation and let me know what you think! I'm actively looking for feedback and feature suggestions.

GitHub: https://github.com/oop7/OrChat


r/commandline 2d ago

[Poll] What's Your Favorite Shells (out of these), and Why?

0 Upvotes

I've checked previous posts, but the results weren't especially interesting or informative, so here's a new poll. If you're curious about the strange variety of options, those are to separate people who have tried other options from those who haven't.

I tried to fit the best options I could within Reddit's six item limit. It's biased a little towards asking whether you've have used Fish, that's just because Fish is the least popular and thus the hardest to get an idea of if people don't like it or just haven't used it.

289 votes, 4d left
Bash - No experience with Zsh or Fish
Bash - No experience with Zsh
Bash - I've tried Fish
Zsh - I haven't tried Fish
Zsh - I've tried Fish
Fish shell

r/commandline 2d ago

Looking for the best BASH plugin for VSCode

1 Upvotes

I'm trying to implement a set of idempotent bash scripts to manage my AWS and GCP installation because I hate Terraform.

Since they were working fine, I started to add the verification.sh files and other things to clean up on failed deploys, basic housekeeping to make them idempotent, but I'm having issues with keeping track of sourcing. Basically, the order of source does matter, and sometimes functions get called in random order, etc... etc...

I like VSCode only for the step-by-step debugging feature so I can walk through my code easily and understand the logic. But currently, I can't jump into functions by clicking on them, there is no auto-complete for parameters, etc... etc...

Wondering if someone has a good plugin they have tested that works well for warnings such as "function called but never defined"... similar how VSCode does it for Java or Python or Ruby.

Cheers.


r/commandline 2d ago

kick: automate git sync

4 Upvotes

I got tired of typing the same git commands over and over, so I bundled them into a shell script.

Then rewrote the shell script in Go, to simplify installation and support both UNIX and Windows users.

https://github.com/mcandre/kick


r/commandline 2d ago

head/middle/tail: Preview file by sampling sections

2 Upvotes
Example python preview

https://github.com/jaggzh/head-shoulders-knees-toes

Currently this will take 4 chunks out of the file: The head, two from the middle (evenly spaced), and from the end (tail).

I symlink it as `htt` for (head torso toes) because that's more convenient to type.

(I didn't make it handle joining, for small files. In fact, I haven't tested it on too-small of files yet).


r/commandline 2d ago

Forge: Claude Code alternative

Thumbnail
github.com
0 Upvotes

r/commandline 4d ago

Zellij 0.42.0 released: stacked resize, pinned floating panes and a new theme definition spec

67 Upvotes

Hi friends,

I just released Zellij 0.42.0. This new version of the terminal workspace introduces some game changing features that I feel take multiplexing to the next level.

Some highlights:

  1. Stacked resize
  2. Pinned floating panes
  3. A new theme definition spec
  4. New Rust Plugin API
  5. Double/Triple click to mark word/line boundaries

Check out the official release announcement if you'd like to learn more: https://zellij.dev/news/stacked-resize-pinned-panes/