shrc VS docopt.sh

Compare shrc vs docopt.sh and see what are their differences.

shrc

My bashrc/shrc that supports bash, zsh, busybox ash and even Dash. ( has: OS and shell detection ) (by denisde4ev)

docopt.sh

Command-line argument parser for bash 3.2, 4+, and 5+. (by andsens)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
shrc docopt.sh
7 5
10 182
- -
2.4 0.0
9 months ago 10 months ago
Shell Python
- MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

shrc

Posts with mentions or reviews of shrc. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-11.
  • ls is bloat
    5 projects | /r/linuxmemes | 11 May 2023
    do I need to say it: 4x time faster. just minus some the cool parts and fallbacks are not that hard, like local keyword https://github.com/denisde4ev/shrc/blob/master/_fallback/local. and the consequences of not having local all around my repos unset-unseted-i and unset-seted-i that throws error if nested functions use i variable at the same time.
  • pavement | lolcat
    1 project | /r/linuxmemes | 15 Nov 2022
    I already have lolwall in my bashrc, but I forgot the bricks
  • yank: copy terminal output to clipboard
    4 projects | /r/commandline | 4 Jun 2022
    my aliases are alias cin='xclip -sel clip -r' cout='xclip -sel clip -o' for clipboard input/output (hi C++ programmers). And if its Wayland then it uses wl-copy or if have termux-clipboard commands. my entire file for detecting it is: https://github.com/denisde4ev/shrc/blob/master/clip-io
  • what is your favorite cd tool (z, z.lua, autojump, zoxide ....) ?
    8 projects | /r/commandline | 10 Apr 2022
    I wrote my own sh function aliased to cd.. and CD https://github.com/denisde4ev/shrc/blob/master/_loadable/_cd__.sh
  • why even use aliases instead of just functions?
    1 project | /r/bash | 22 Mar 2022
    you can see my __load_loadable function here https://github.com/denisde4ev/shrc/blob/master/_loadable/LOADABLE (sorry if my code is not simple)
  • Beautiful Scripts
    6 projects | /r/bash | 8 Feb 2022
  • What do you use Linux on? What do you not?
    1 project | /r/linux | 8 Jan 2022
    My PC: Lenovo AIO; 21" touchscreen monitor; Arch+KDE. I'm happy witch my bashrc/shrc organization

docopt.sh

Posts with mentions or reviews of docopt.sh. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-03-16.
  • Docopt.sh – Command-Line Argument Parser for Bash 3.2, 4, and 5
    1 project | /r/hypeurls | 16 Mar 2023
    5 projects | news.ycombinator.com | 16 Mar 2023
    I like that this generates readable output that could pass as hand-written code.

    The docopt.sh output looks like it went through a JS minifier. Or is there a way to change that? If so I think it should default to that.

    https://github.com/andsens/docopt.sh/blob/master/docs/naval_...

  • Programs are dead, and JavaScript has killed them
    2 projects | news.ycombinator.com | 13 Dec 2022
    If you want to avoid having to write your own args parser everytime or think getopt is a pain, you should check out my little project:

    https://github.com/andsens/docopt.sh

    No dependencies, the code is directly inlined into your script, and you write the args parser by writing the help-text.

  • Beautiful Scripts
    6 projects | /r/bash | 8 Feb 2022
    Honestly, I left it as a gist because even though it reduces boilerplate, getopts is still not a great flag parser (e.g. only supports single-letter flags, and no type safety or other validation aside from boolean / string). I use it in my shell environment since I have lots of shell functions and I don't care to pull in a "real" parser into my shell, but if I was writing any sort of more complex standalone script I probably wouldn't use it. Check out docopt if you haven't seen it, I've been meaning to give that a whirl at some point.

What are some alternatives?

When comparing shrc and docopt.sh you can also consider the following projects:

bash-cache - Transparent caching layer for bash functions; particularly useful for functions invoked as part of your prompt.

docopt - This project is no longer maintained. Please see https://github.com/jazzband/docopt-ng

bashmarks - Directory bookmarks for the shell

arg - usage: arg [...args]; output: (count of args):(len of args) (...quoted arguments)

tinysh - Tiny UNIX shell, de-obfuscated, modernized, and "rewritten in Rust".

zfm - Zsh Fuzzy Marks

clipboard-over-ssh - copy clipboard command from the remote clipboard (meant to be used with micro editor)

rpg-cli - Your filesystem as a dungeon!

extrakto - extrakto for tmux - quickly select, copy/insert/complete text without a mouse

smartcd - SmartCd - A Mnemonist cd Command with Autoexec Feature

smenu - smenu started as a lightweight and flexible terminal menu generator, but quickly evolved into a powerful and versatile CLI selection tool for interactive or scripting use.