/r/commandline
This is for anything regarding the command line, in any operating system. All questions (including dumb ones), tips, and links to interesting programs/console applications you've found or made yourself are welcome. Linux / BSD / OSX / Windows CLI and TUI apps or questions or comments, we're happy to take them all!
-----------------------------
/ This is for anything
| regarding the command line, |
| in any operating system. All |
| questions (including dumb |
| ones), tips, and interesting |
| programs/console applications |
| you've found or made yourself |
| are welcome. Please read the |
| rules, and you're welcome to |
| flair your posts if you want |
\ to. / |
---|
\ ^__^
\ (OO)\_______
(__)\ )\/\
||----w |
|| ||
commandline@reddit ~ $ _
If you're asking for help, remember to help the community by stating what OS and version you're using, and if at all possible paste any commands you've tried and any errors or output that you've seen.
Related subreddits:
/r/commandline
Hey everyone! 👋
I just released an NPM package that lets you generate files effortlessly based on your prompts! Right now, it supports React and Node.js projects, and I’d love to hear your feedback!
I’d love for you to give it a shot and let me know what you think. Any suggestions for improvements or additional features? https://www.npmjs.com/package/genjs-cli
Github repo : https://github.com/vaibav03/genjs-cli
We just open-sourced **Lume, https://github.com/trycua/lume** - a tool we built after hitting walls with existing virtualization options on Apple Silicon. No GUI, no complex stacks - just a single binary that lets you spin up macOS or Linux VMs via CLI or API.
lume run macos-sequoia-vanilla:latest
POST /lume/vms
)lume run macos-sequoia-vanilla:latest
brew tap trycua
lume brew install lume
You can also download the lume.pkg.tar.gz
archive from the latest release and install the package manually.
lume
exposes a local HTTP API server that listens on http://localhost:3000/lume
, enabling automated management of VMs.
lume serve
For detailed API documentation, please refer to API Reference.
HN devs - would love raw feedback on the CLI and whether this solves your VM on Apple Silicon pain points. What would make you replace Lima, UTM or Tart with this?
Repo: github.com/trycua/lume
Python SDK: github.com/trycua/pylume
I wrote a simple cli tool called jhtree in Go that outputs the hierarchy of java classes like the tree command
The title is pretty self-explanatory, I am looking for something extremely simple that allows me to view, add and edit rows in the "dumbest" way possible.
Fuzzy search would also be nice to have.
In short, something like Tabiew, but with the ability to make edits:
Posts showing Kitty getting something like (but not 100% like) Neovide's animated cursor got lots of upvotes, it seems like there are a good amount of terminal users that would in fact like Neovide's visual features. Just to show a few: https://neovide.dev/features.html.
https://i.redd.it/4gp4uxe3ioge1.gif
https://i.redd.it/7nou7ykgioge1.gif
Hi, all. I am currently on a path to cybersecurity so I am doing my due diligence by learning CLI using overthewire . org war games
My question is, how do i cat a file named "spaces in this filename"?
without the contents within this file, I cannot proceed to the next level. I apologize if this question is dumb lol
Thank you!
Query frontmatter data with SQL.
I wanted to edit my notes in vim without switching to Obsidian, and I was missing dataview, so I made my own.
There is also a nvim plugin: perec.nvim
Hi all
Is there any way to make my prompt persist over SSH?
I’m excited to share my Python package, **Markdrop**, which has hit 6.17k+ downloads in just a month, so updated it just now! 🚀 It’s a powerful tool for converting PDF documents into structured formats like Markdown (.md) and HTML (.html) while automatically processing images and tables into descriptions for downstream use. Here's what Markdrop does:
# Key Features:
* **PDF to Markdown/HTML Conversion**: Converts PDFs into clean, structured Markdown files (.md) or HTML outputs, preserving the content layout.
* **AI-Powered Descriptions**: Replaces tables and images with descriptive summaries generated by LLM, making the content fully textual and easy to analyze. Earlier I added support of 6 different LLM Clients, but to improve the inference time, restricted to Gemini and GPT.
* **Downloadable Tables**: Can add accurate download buttons in HTML for tables, allowing users to download them as Excel files.
* **Seamless Table and Image Handling**: Extracts tables and images, generating detailed summaries for each, which are then embedded into the final Markdown document.
At the end, one can have a **.md** file that contains only textual data, including the AI-generated summaries of tables, images, graphs, etc. This results in a highly portable format that can be used directly for several downstream tasks, such as:
* Can be directly integrated into a RAG pipeline for enhanced content understanding and querying on documents containg useful images and tabular data.
* Ideal for automated content summarization and report generation.
* Facilitates extracting key data points from tables and images for further analysis.
* The .md files can serve as input for machine learning tasks or data-driven projects.
* Ideal for data extraction, simplifying the task of gathering key data from tables and images.
* The downloadable table feature is perfect for analysts, reducing the manual task of copying tables into Excel.
Markdrop streamlines workflows for document processing, saving time and enhancing productivity. You can easily install it via:
pip install markdrop
There’s also a **Colab demo** available to try it out directly: [Open in Colab](https://colab.research.google.com/drive/1ZebtmqGB9i4pZzo824aT5KzGuPikw6D9?usp=sharing).
[Github Repo](https://github.com/shoryasethia/markdrop)
If you've used Markdrop or plan to, I’d love to hear your feedback! Share your experience, any improvements, or how it helped in your workflow.
Check it out on [PyPI](https://pypi.org/project/markdrop) and let me know your thoughts!
I'm wondering what you guys do to swap esc and capslock for tty, i don't want to effect x11 or wayland setting which i run when graphical?
is there a shorthand way of accomplishing this in /etc/vconsole.conf?
Running arch linux but am curious about other major distros or even openbsd!
Enhancing your pre-commit experience with seamless hook autocompletion 🎢
GitHub: https://github.com/jason810496/zsh-pre-commit-autocomplete
I use OMZ, but...
✗ gsw
fatal: missing branch or commit argument
Or
✗ gsw
zsh: do you wish to see all 135 possibilities (135 lines)?
I would really like to push two buttons to go to 1 of the 10 latest branches I worked on.
Hello everyone,
I built a small tool I had been wanting for a while: a "television channel" for Nix packages.
You can check it out here: https://github.com/3timeslazy/nix-search-tv
It's built on top of awesome and fast nix-search package. Right now, it allows you to fuzzy search nixpkgs
, but I’m considering adding support for home-manager and nix-darwin as well.
Also, I would like to say big thanks to the contributors of nix-search
—this project wouldn't exist without their work
Hi,
I'm working on a command line tool taking regular expressions as arguments:
$ ./app column=regexp1 +regexp2 -regexp3
It basically filters a table of rows, the comand line arguments constraint the relevant/interesting rows:
foo=regexp1
matches a row where the column foo
value is characterized by regexp1
+regexp2
denotes that regexp2
must be included in a certain column (contains)-regexp3
denotes that regexp3
must NOT be included in a certain column (contains not)By default, the provided regular expressions match some text case insensitive. This is not negotiable, because it's critical to get rather more than to few results.
Now, can you think of an established notation/syntax that switches to case sensitive matching that plays well on the shell / command line?
In the world I know, the default is reverse. Matching happens case sensitive by default and it's possible to switch to case insensitive. For example,
\c
and \C
to specify the case to use.\\rc
or "\cregexp1"
so the application gets it (escaping), which looks somewhat awkward.I somewhat like the /foo/
notation, as at least in the unix world it's somewhat known that a regular expression is meant with that. It also opens room for extension (funny letters after the last /).
The other idea I had was to introduce command line options denoting the case sensitivity, but as you see from the example invocation above, that somewhat conflicts with the -regexp3 notation above:
$ ./app column=regexp1 +regexp2 -c -regexp3
the -c could mean: "the following regexes are to be matched case sensitive!".
Is there a notation you know that would fit here? What would be intuitive for you? :)
Hey all, new to the command line and wanted to start by remotely controlling our site. I have Oh My Zsh installed, but when I run something like `wp plugin list`, it gives me this:
WP Plugin List - no formatting
Conversely, when I run on another program (Local by Flywheel - use the integrated site shell), I get something like this:
I'm using iTerm2. Any ideas how I can achieve result 2?
My USB pluggin is fine, i tried various methods and other updates and it's still not working, like how to fi it?
Title.
Hey fellow CLI workers!
I'd like to share rsnip, a command-line snippet manager designed to make CLI workflows more efficient. Whether you’re juggling shell commands, git workflows, or custom scripts, rsnip makes searching snippets FAST and more productive.
We’ve all been there: searching for that one command or code snippet we know we used before. While tools like ChatGPT are amazing for new ideas, for repeated tasks, they’re slow and unreliable. Shell history is fast but limited. What I would like to have:
{{ env_USER }}
or {{ current_date|strftime('%Y-%m-%d') }}
).If this sounds like it might also help your workflow give it a try: cargo install rsnip
I'd appreciate your feedback!
It now supports color themes too. Which color theme would you like me to add?
I'm using Warp terminal, and I'd like to move to something more private and open (ideally Ghostty).
However, one feature it has me stuck on it is the visual command history. If I type "ls" then up_key, it shows every my command history filtered to that prefix. I'm looking for a good open alternative to this in zsh or fish.
I tried zsh-autosuggestions and it is nice, but only shows the one. I usually have many I want to look at visually.
I do care about the the UX/keybindings. "up" is pretty hooked into history in my mind and will be hard to reprogram myself. Being able to hit "up" after typing the start is also important to me (I don't realize I need this until I'm part way into typing).
Idk if anyone remembers me from my kotek os post, but since then i switched to making an alpine based distro and today i was able to make a very basic shell! (Made in arch, and will be implemented into my alpine iso soon!)
Desired outcome is... Select magnet link, pass magnet url to transmission-remote.
I have tried placing test commands in /etc/lynx.cfg, ~/.lynxrc, ~/.lynx/external
Errors I've gotten.
LYrcFile: missing '=' EXTERNAL:magnet:echo "Magnet link clicked: %s" >> /home/luke/Lynx.trace
LYrcFile: ignored EXTERNAL=http:echo "POSTs" >> /home/[name]/test.txt
I cannot get ANY functionality out of the EXTERNAL command modules.
I have tried everything I can think of any recommendations would be greatly appreciated.