Skip to content

Commit 752cbc2

Browse files
committed
chore: latest dotfiles
1 parent 065a396 commit 752cbc2

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

setup-generic

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

4-
# Function to check if a command exists
5-
command_exists() {
6-
command -v "$1" >/dev/null 2>&1
7-
}
8-
94
# Install pipx if not already available
10-
if ! command_exists pipx; then
5+
if ! command -v pipx >/dev/null 2>&1; then
116
echo "Installing pipx..."
127
brew install pipx
138
pipx ensurepath
@@ -108,12 +103,12 @@ kubectl-krew install ctx ns minio neat konfig cert-manager sniff
108103
set -e PIP_BREAK_SYSTEM_PACKAGES
109104

110105
# Volta
111-
if ! command_exists volta; then
106+
if ! command -v volta >/dev/null 2>&1; then
112107
curl https://get.volta.sh | bash
113108
fi
114109

115110
# Claude CLI
116-
if ! command_exists claude; then
111+
if ! command_exists claude >/dev/null 2>&1; then
117112
curl -fsSL claude.ai/install.sh | bash || true
118113
fi
119114

0 commit comments

Comments
 (0)