bashy

(★ 10)

bashy handles bash configuration for you

File Explorer

  • .editorconfig
  • .gitignore
  • .includes
  • .luacheckrc
  • .rumdl.toml
  • .shellcheckrc
  • CLAUDE.md
  • LICENSE
  • README.md
  • rsconstruct.toml

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

git clone

View Details ▼

Clone an existing repository.

git clone {{remote_repository_location}} {{path/to/directory}}

Clone an existing repository into a new directory (the default directory is the repository name):

git clone --recursive {{remote_repository_location}}

Clone an existing repository and its submodules:

git clone {{[-n|--no-checkout]}} {{remote_repository_location}}

Clone only the `.git` directory of an existing repository:

🔍

git rev-parse

View Details ▼

Display metadata related to revisions.

git rev-parse {{branch_name}}

Get the commit hash of a branch:

git rev-parse --abbrev-ref {{HEAD}}

Get the current branch name:

git rev-parse --show-toplevel

Get the absolute path to the root directory:

🔍

git

View Details ▼

Distributed version control system.
Some subcommands such as `commit`, `add`, `branch`, `switch`, `push`, etc. have their own usage documentation.

git init

Create an empty Git repository:

git clone {{https://example.com/repo.git}}

Clone a remote Git repository from the internet:

git status

View the status of the local repository:

🔍

starship init

View Details ▼

Print shell integration code for starship.

starship init {{bash|elvish|fish|ion|powershell|tcsh|zsh}}

Print the starship integration code for the specified shell:

starship init {{bash}} >> {{~/.bashrc}}

Append the `starship` integration code to `~/.bashrc`:

starship init {{zsh}} >> {{~/.zshrc}}

Append the `starship` integration code to `~/.zshrc`:

🔍

then

View Details ▼

This shell keyword is used in combination with `if` and `elif` to separate branches and branch conditions.

tldr if

View documentation for `if` command:

🔍

zoxide

View Details ▼

Keep track of the most frequently used directories.
Uses a ranking algorithm to navigate to the best match.

zoxide query string

Go to the highest-ranked directory that contains `string` in the name:

zoxide query string1 string2

Go to the highest-ranked directory that contains `string1` and then `string2`:

zoxide query {{[-i|--interactive]}}

Start an interactive directory search (requires `fzf`):

// repository documentation