Beautiful Scripts

This page summarizes the projects mentioned and recommended in the original post on /r/bash

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • sn

    Simple Notes using fzf

  • bash-cache

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

  • I'm pretty proud of my bash-cache utility, which implements a decorator pattern in Bash. Define a function, pass it to bc::cache, and like magic the function is wrapped with a caching layer.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • ProfileGem

    A shell configuration utility to compartmentalize and manage your terminal utilities and environment

  • And like many I've spent waaay too long messing around with my shell environment, which has wound up as ProfileGem, a modular shell environment manager, along with prompt.gem, my custom terminal prompt. Some features that stand out:

  • prompt.gem

    A collection of shell scripts to customize your prompt, distributed as a ProfileGem gem.

  • And like many I've spent waaay too long messing around with my shell environment, which has wound up as ProfileGem, a modular shell environment manager, along with prompt.gem, my custom terminal prompt. Some features that stand out:

  • shrc

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

  • docopt.sh

    Command-line argument parser for bash 3.2, 4+, and 5+.

  • 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.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts