Last active
May 5, 2026 12:52
-
-
Save romankierzkowski/2a64928a823bdbace10e66d1ae56291e to your computer and use it in GitHub Desktop.
CLI tools installer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Install: curl -fsSL https://gist.github.com/romankierzkowski/2a64928a823bdbace10e66d1ae56291e/raw | bash | |
| set -e | |
| # ── Homebrew ────────────────────────────────────────────────────────────────── | |
| if ! command -v brew &>/dev/null; then | |
| echo "Installing Homebrew..." | |
| /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
| fi | |
| # ── Tools ───────────────────────────────────────────────────────────────────── | |
| brew install \ | |
| ripgrep \ | |
| fd \ | |
| bat \ | |
| eza \ | |
| git-delta \ | |
| dust \ | |
| duf \ | |
| procs \ | |
| fzf \ | |
| zoxide \ | |
| jq \ | |
| yq \ | |
| tmux \ | |
| lazygit \ | |
| gh \ | |
| btop \ | |
| hyperfine \ | |
| xh \ | |
| direnv \ | |
| just \ | |
| starship \ | |
| atuin | |
| # ── Shell integrations ──────────────────────────────────────────────────────── | |
| SHELL_RC="$HOME/.zshrc" | |
| [ "$SHELL" = "/bin/bash" ] && SHELL_RC="$HOME/.bashrc" | |
| add_if_missing() { | |
| grep -qF "$1" "$SHELL_RC" 2>/dev/null || echo "$1" >> "$SHELL_RC" | |
| } | |
| add_if_missing 'eval "$(starship init zsh)"' | |
| add_if_missing 'eval "$(zoxide init zsh)"' | |
| add_if_missing 'eval "$(atuin init zsh)"' | |
| add_if_missing 'eval "$(direnv hook zsh)"' | |
| add_if_missing '[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh' | |
| # fzf shell integration | |
| "$(brew --prefix)/opt/fzf/install" --key-bindings --completion --no-update-rc 2>/dev/null || true | |
| echo "" | |
| echo "Done. Restart your shell or run: source $SHELL_RC" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment