Skip to content

Instantly share code, notes, and snippets.

@romankierzkowski
Last active May 5, 2026 12:52
Show Gist options
  • Select an option

  • Save romankierzkowski/2a64928a823bdbace10e66d1ae56291e to your computer and use it in GitHub Desktop.

Select an option

Save romankierzkowski/2a64928a823bdbace10e66d1ae56291e to your computer and use it in GitHub Desktop.
CLI tools installer
#!/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