#run-command #command #prompt #cli-command #confirmation #cli #wrapper

app shuc

a simple wrapper command to prompt you before running a command

3 releases

0.1.3 Dec 4, 2024
0.1.2 Nov 8, 2023
0.1.1 Nov 8, 2023
0.1.0 Aug 8, 2023

#1689 in Command line utilities

Download history 10/week @ 2024-09-23 35/week @ 2024-09-30 3/week @ 2024-10-07 163/week @ 2024-12-02 17/week @ 2024-12-09

180 downloads per month

WTFPL license

6KB
90 lines

shuc - don't ever accidentally run a command again¹

shuc is a simple wrapper command that takes a command as input and prompts you to confirm before running it.

usage

shuc <command>

installing

  • you need the rust toolchain installed on your system (as well as having .cargo/bin in your path)
  • then simply run cargo install shuc
  • or run cargo install --git https://github.com/RoootTheFox/shuc

extras

you can use aliases to always run common commands (such as shutdown or rm) through shuc:

  • alias rm="shuc rm"
  • alias shutdown="shuc shutdown"

why is it named shuc?

the original name intention was "shutdown confirmation" but i decided it would be a better idea to make it universal

i kept the name because it was short and sounded nice idk



¹ i am not responsible for any possible fuck ups that occur while using this software

Dependencies

~1.7–8MB
~61K SLoC