perf: codespaces
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
# Print SSH key.
|
||||
#
|
||||
|
||||
# Skip in Codespaces
|
||||
# Skip in Codespaces (managed by GitHub)
|
||||
[[ "$DOTS_ENV" == "codespaces" ]] && { log_pass "Skipping in Codespaces"; return 0; }
|
||||
|
||||
# Skip if explicitly disabled
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
# (distros with apt only) Install core apt packages.
|
||||
#
|
||||
|
||||
# Skip in Codespaces (pre-installed in universal image)
|
||||
[[ "$DOTS_ENV" == "codespaces" ]] && { log_pass "Skipping in Codespaces"; return 0; }
|
||||
|
||||
# apt only
|
||||
[[ "$DOTS_PKG" != "apt" ]] && { log_warn "Skipping: Not using apt"; return 0; }
|
||||
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
# Configure git.
|
||||
#
|
||||
|
||||
# Skip in Codespaces (pre-installed in universal image)
|
||||
[[ "$DOTS_ENV" == "codespaces" ]] && { log_pass "Skipping in Codespaces"; git --version; return 0; }
|
||||
|
||||
if ! command -v git &> /dev/null; then
|
||||
case "$DOTS_PKG" in
|
||||
apt)
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
# Configure pyenv.
|
||||
#
|
||||
|
||||
# Skip in Codespaces (use pre-installed Python)
|
||||
[[ "$DOTS_ENV" == "codespaces" ]] && { log_pass "Skipping in Codespaces"; return 0; }
|
||||
|
||||
export PYENV_ROOT="$HOME/.pyenv"
|
||||
if ! echo "$PATH" | grep -q "$PYENV_ROOT"; then
|
||||
export PATH="$PYENV_ROOT/bin:$PATH"
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
# Configure Python.
|
||||
#
|
||||
|
||||
# Skip in Codespaces (use pre-installed Python)
|
||||
[[ "$DOTS_ENV" == "codespaces" ]] && { log_pass "Skipping in Codespaces"; return 0; }
|
||||
|
||||
export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
|
||||
|
||||
local version="3.14.2"
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
# Configure Node.js.
|
||||
#
|
||||
|
||||
# Skip in Codespaces (use pre-installed Node.js)
|
||||
[[ "$DOTS_ENV" == "codespaces" ]] && { log_pass "Skipping in Codespaces"; return 0; }
|
||||
|
||||
NVM_DIR=${NVM_DIR:-"$HOME/.nvm"}
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && source "$NVM_DIR/nvm.sh"
|
||||
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
# Install Azure CLI.
|
||||
#
|
||||
|
||||
# Skip in Codespaces (project-specific tool)
|
||||
[[ "$DOTS_ENV" == "codespaces" ]] && { log_pass "Skipping in Codespaces"; return 0; }
|
||||
|
||||
if ! command -v az &>/dev/null; then
|
||||
case "$DOTS_PKG" in
|
||||
apt)
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
# Install GitHub CLI.
|
||||
#
|
||||
|
||||
# Skip in Codespaces (pre-installed in universal image)
|
||||
[[ "$DOTS_ENV" == "codespaces" ]] && { log_pass "Skipping in Codespaces"; return 0; }
|
||||
|
||||
if ! command -v gh &>/dev/null; then
|
||||
case "$DOTS_PKG" in
|
||||
apt)
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
# Install terraform.
|
||||
#
|
||||
|
||||
# Skip in Codespaces (project-specific tool)
|
||||
[[ "$DOTS_ENV" == "codespaces" ]] && { log_pass "Skipping in Codespaces"; return 0; }
|
||||
|
||||
if ! command -v terraform &>/dev/null; then
|
||||
case "$DOTS_PKG" in
|
||||
apt)
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
# Install Redis.
|
||||
#
|
||||
|
||||
# Skip in Codespaces (project-specific tool)
|
||||
[[ "$DOTS_ENV" == "codespaces" ]] && { log_pass "Skipping in Codespaces"; return 0; }
|
||||
|
||||
if ! command -v redis-cli &>/dev/null; then
|
||||
case "$DOTS_PKG" in
|
||||
apt)
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
# Install neofetch.
|
||||
#
|
||||
|
||||
# Skip in Codespaces (cosmetic tool)
|
||||
[[ "$DOTS_ENV" == "codespaces" ]] && { log_pass "Skipping in Codespaces"; return 0; }
|
||||
|
||||
if ! command -v neofetch &>/dev/null; then
|
||||
case "$DOTS_PKG" in
|
||||
apt)
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
# Clean up after installation.
|
||||
#
|
||||
|
||||
# Skip in Codespaces (minimal benefit in ephemeral environment)
|
||||
[[ "$DOTS_ENV" == "codespaces" ]] && { log_pass "Skipping in Codespaces"; return 0; }
|
||||
|
||||
case "$DOTS_PKG" in
|
||||
brew)
|
||||
brew cleanup
|
||||
|
||||
@@ -5,4 +5,7 @@
|
||||
# Print system information.
|
||||
#
|
||||
|
||||
# Skip in Codespaces (cosmetic only)
|
||||
[[ "$DOTS_ENV" == "codespaces" ]] && { log_pass "Skipping in Codespaces"; return 0; }
|
||||
|
||||
neofetch
|
||||
|
||||
Reference in New Issue
Block a user