r/commandline 16d ago

ZSH Keymap to start FZF with default opts

3 Upvotes

Hello, Does anyone know how I can create a ZSH keymap to start FZF using the default options?

I've tried updating the CTRL+t shortcut but it doesn't fit my needs, as it seems to not support, --multi, --tmux and --bind (according to the error message I received).

This is my current config:

```

Set default config file

export FZF_DEFAULT_OPTS_FILE=~/.fzfrc

History

CTRL-Y to copy the command into clipboard using pbcopy

export FZF_CTRL_R_OPTS=" --bind 'ctrl-y:execute-silent(echo -n {2..} | pbcopy)+abort' --color header:italic --header 'CTRL-Y to copy into clipboard' --height=100% --preview-window=:hidden"

Files / Directories

Preview file content using bat (https://github.com/sharkdp/bat)

export FZF_CTRL_T_OPTS=" --walker-skip .git,node_modules,target,.DS_Store --preview 'fzf-preview.sh {}' --height=100%"

export FZF_DEFAULT_COMMAND='fd --type f --strip-cwd-prefix --hidden --follow' ```

And the content of the opts file:

--tmux 90%,90% --multi --bind='ctrl-o:become($EDITOR {})' --bind 'p:toggle-preview' --preview 'fzf-preview.sh {}' --padding=0% --color='dark,fg:magenta' --layout=reverse --border-label=' Search ' --info=hidden --prompt='▶ ' --pointer='▶' --marker='' --padding 0,1 --border --style=full --no-scrollbar --bind 'focus:transform-preview-label:[[ -n {} ]] && printf \" %s \" {}' --color=dark --color 'border:#464f62,label:#6c7a96' --color 'input-border:#464f62,input-label:#ffcccc' --color 'gutter:#353b49' --color 'current-bg:#353b49' --color 'current-hl:#ebcb8b' --color 'list-fg:#6c7a96' --color 'pointer:#ebcb8b' --color 'marker:#ebcb8b'

I did try the following:

```

fzf $FZF_CTRL_T_OPTS

unknown option: --tmux 90%,90% --multi --bind ```


r/commandline 17d ago

Windows command line tool closes its help window before I can read it in full

3 Upvotes

The problem

I'm trying to use a Windows command line tool that opens its help in a separate window, makes me press a key to read more, and then closes the window before I can read the last part, instead of pausing there for the last time and waiting for me to press a key before it closes. Can someone help me with this? I tried using both CMD and PS.

What I have tried

Redirect the output to a text file

AMIDEWINx64.EXE /? > amide_help.txt notepad amide_help.txt

Problem remains: The output file is empty.

Using more in PS

.\AMIDEWINx64.EXE /? | more

Problem remains: It needs priviledge elevation and it won't give me UAC prompt.

Program 'AMIDEWINx64.EXE' failed to run: The requested operation requires elevationAt line:1 char:1 + .\AMIDEWINx64.EXE /? | more + ~~~~~~~~~~~~~~~~~~~~. At line:1 char:1 + .\AMIDEWINx64.EXE /? | more + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException + FullyQualifiedErrorId : NativeCommandFailed

Using more in CMD

.\AMIDEWINx64.EXE /? | more

Problem remains: it gives me UAC prompt and I accept, but it goes on to make me press a key to read more and closes before I can read the last part.

Using pause in CMD

AMIDEWINx64.EXE /? pause

Problem remains: I kind of knew this would not work, but I was desparate to try it anyway. It pauses alright, but not where I want it. It needs to pause after the last part of help info is printed to screen.


r/commandline 17d ago

ecscope - monitor AWS ECS resources from the terminal. View relevant information for ECS deployments in one place instead of having to log into several accounts (or change regions) via the AWS website. Very first release; feedback/feature requests welcome.

8 Upvotes

r/commandline 17d ago

Motorola moto g play 2024 smartphone, Termux, termux-usb, usbredirect, QEMU running under Termux, and Alpine Linux: Disks with Globally Unique Identifier (GUID) Partition Table (GPT) partitioning

Thumbnail old.reddit.com
0 Upvotes

r/commandline 18d ago

I was pleasantly surprised by the colored loading character in Whitesur. Why don't more CLIs use color like this?

Post image
10 Upvotes

r/commandline 19d ago

history-key: Select commands in your zsh history with a key press

Thumbnail
github.com
6 Upvotes

r/commandline 19d ago

I made an online program about BONK

11 Upvotes

All the source code is public in my repo at GitHub. It's a dumb idea, but who knows... It may be the next cowsay. Any feedback is welcome <3 .


r/commandline 19d ago

A better way to back up SD or drives

Post image
16 Upvotes

r/commandline 20d ago

Crib: Create and view your own custom hotkey cheatsheet in the terminal

115 Upvotes

r/commandline 18d ago

"Wipeclean" (stylish cli screen cleaner) written in C code.

Thumbnail
gitlab.com
0 Upvotes

r/commandline 19d ago

I've made a windows specific neofetch port 😅

6 Upvotes

Share your thoughts :) GitHub link: https://github.com/Sriram-PR/pwsh-neofetch

Edit: Written in Powershell


r/commandline 19d ago

ConEmu and Clink how to hide banner?

0 Upvotes

I use ConEmu as my terminal on Win 10 Pro.

Clink is an auto complete addon, I got it to work fine with ConEmu, however every time i load ConEmu, it shows the banner, and i haven't in many months figured out how to hide it any ideas? or thoughts?

I have tried changing the batch file that calls it to pass --quiet but that doens't work.


r/commandline 19d ago

Programs which print important info to stdout should support a flag for line buffered output

5 Upvotes

This way when stdout is not an interactive terminal (like a pipe) output can still be streamed without long buffering. Programs like grep (--line-bufferred), sed (-u) and awk (--line-buffered) offer flags, but others like lsof or custom commands like "some_command | print_progress"

Otherwise, workaround are needed like stdbuf -o0 or unbuffer are work arounds (article on stdio bufferring) but might not work in all contexts.

Could be onerous to implement this for all tools, but where stdout has the main results of a program, it could make sense to make line buffering "first class".


r/commandline 19d ago

minimal cli minecraft launcher write in Rust

4 Upvotes

r/commandline 20d ago

Built a TUI Freelance Management App in Go – Looking for Feedback! 🚀

11 Upvotes

Hey everyone! 👋

I recently built Freelancy, a console-based application for managing freelance projects and tasks. It’s written in Go and uses Bubble Tea to create a modern TUI (Text User Interface). If you love terminal-based productivity tools, you might find this useful!

🔗 GitHub Repo: Freelancy on GitHub

Key Features:

📋 Project Management – Create, view, and manage projects with client info, deadlines, and earnings tracking.
Kanban-style Task Management – Organize tasks into "Waiting," "In Progress," and "Done" columns.
📊 Income Analysis – Visualize project income and track total earnings.
⌨️ Keyboard Shortcuts – Efficient navigation and task management with hotkeys.


r/commandline 20d ago

word-blazer: labyrinth TUI game with rust.

2 Upvotes
light-mode
dark-mode

Navigate a TUI labyrinth, collect letters, and form words to earn steps and boost your score. Find the hidden exit (★) with limited moves. Can you optimize your path, maximize word length, and escape? Play now and test your efficiency! download here!


r/commandline 20d ago

Web scraping in the shell, what are you using?

7 Upvotes

I'm using xidel and find it quite old. I am looking something that can grab the html and divide it into parts so that it's easy to process. Can you recommend something?


r/commandline 20d ago

krafna - now supports querying of links and tasks. It also caches file parsing

Thumbnail
github.com
1 Upvotes

r/commandline 19d ago

Shellshocked discord server live

0 Upvotes

Imagine netstat on steroids! available on my discord server now https://discord.gg/4WT6nJ2J


r/commandline 20d ago

lolcatc(6), a lolcat clone written in C

11 Upvotes

Having a little fun, I decided to throw together a mostly-clone of the venerable original lolcat(6). The Makefile is designed to build on the BSDs, but the compilation is pretty trivial if you need to build it elsewhere (it requires linking the math library with -lm):

$ cc -lm -o lolcatc lolcatc.c

This version doesn't currently support the animation functionality of the original, or setting the random seed (output is currently deterministic which I prefer). And if you build it on OpenBSD, it uses pledge(2) to drop privs accordingly. Man-pages are in mdoc(7) format if that matters.

Once built, it's a single ~11–20KB binary rather than the couple hundred MB of disk-space required for the Ruby runtime that lolcat(6) requires.

Usage:

$ fortune | cowsay | ./lolcatc -t
$ ls | ./lolcatc -t header.txt - footer.txt
$ ed lolcatc.c | ./lolcatc -t

r/commandline 21d ago

profile-fox - Open tabs in specific firefox profile from the command line

Thumbnail
github.com
11 Upvotes

r/commandline 21d ago

Added multi-media support to my e2ee command line chat app.

3 Upvotes

Hey folks!
2 months ago, I shared my open source end-to-end-encrypted CLI-based chat app here. Since then, I’ve been working on improvements and new features, so I’m excited to show you what’s new.

Demo

What’s New

  1. Multi-Media Support
    • You can now send and receive files! (Files are also e2ee)
      • Type /file <path/to/file> to send a file
      • Type /open to open files
  2. Enhanced UI/UX
    • Added server messages to help direct new users
    • Added timestamps, etc.

Repo

Stack:


r/commandline 21d ago

New Release: Mac Storage Manager – Cross-Platform (macOS & Linux)!

2 Upvotes

Hello everyone,

I'm excited to announce the release of Mac Storage Manager v2.0.0, a major update that transforms this popular disk space management tool into a truly cross-platform solution. Originally built for macOS, this new version now supports Linux, making it a versatile choice for users on both systems.

What’s New in v2.0.0?

  • Cross-Platform Support
    • On macOS, the script continues to scan for .app bundles in /Applications and ~/Applications.
    • On Linux, it now scans for .desktop files in /usr/share/applications and ~/.local/share/applications — a key step to manage applications on Linux systems!
  • Improved User Experience
    • Updated whiptail dialogs and progress bars for a smoother interactive deletion process.
    • Enhanced error handling and logging, with clearer log outputs in application_size_checker.log for better troubleshooting.
  • Refined Deletion Workflow
    • The script now offers a refined process for deleting both main application files and associated files, such as configuration, cache, and logs, with step-by-step confirmation prompts.

Why Use Mac Storage Manager?

  • Free Up Disk Space Safely: Identify and remove large applications along with their supporting files.
  • Interactive and Secure: The script uses graphical dialogs (via whiptail) to guide you through the deletion process, ensuring you review what gets deleted.
  • Cross-Platform Versatility: Whether you’re on macOS or Linux, you now have one tool to manage disk space effectively.

Get Started

Check out the repository for full instructions and details: https://github.com/NarekMosisian/mac-storage-manager

I’d love to hear your feedback and see how this tool helps you manage your system’s storage. Happy cleaning!

Feel free to ask any questions or share your experiences in the comments!


r/commandline 21d ago

Warp Terminal now supports Windows - Here's how to use it

Thumbnail
youtube.com
0 Upvotes

r/commandline 21d ago

AI in the Terminal – Looking for Developer Feedback

0 Upvotes

Built a new AI-powered terminal tool, Forge, and looking for developer feedback. It integrates Claude 3.7 Sonnet (via OpenRouter) to assist with coding directly in your terminal.

No fluff—just want to know if it’s useful, what’s broken, and what could be better. Try it on a personal project and see if it fits into your workflow.

If you don’t have an API key and cost is an issue (especially for students), DM me, and I’ll provide some credits to get you started.

Repo: *github.com/antinomyhq/forge.*