Installation

Install bashly using one of these methods.

Bashly requires Ruby 3.3 or higher (ruby -v).

gem install bashly

Installing Ruby
../installing-ruby/

If you have docker installed, you can create an alias that will run the docker image:

alias bashly='docker run --rm -it --user $(id -u):$(id -g) --volume "$PWD:/app" dannyben/bashly'

The bashly docker image can also be installed using Whalebrew:

whalebrew install dannyben/bashly

Bash Completions

To load completions for the bashly executable in the current Bash session, run:

source <(bashly completions)

For a persistent per-user installation, save the script as bashly in the standard user completions directory:

mkdir -p ~/.local/share/bash-completion/completions
bashly completions > ~/.local/share/bash-completion/completions/bashly

The bash-completion package will load this file on demand when completing the bashly command.

You might need to install the bash-completion package for your operating system if it is not already installed. For example:

brew install bash-completion
# or
sudo apt install bash-completion

Prerequisites

The bash scripts generated by bashly can run in any shell, but require that bash 4.2 or higher is installed.

Mac users can upgrade bash by running:

brew install bash