diff --git a/files/home/.zshrc b/files/home/.zshrc index 89b3823..e30870b 100644 --- a/files/home/.zshrc +++ b/files/home/.zshrc @@ -46,3 +46,7 @@ _dots_build_prompt if [[ -n "$ZSH_BENCH" ]]; then zprof fi + +export NVM_DIR="$HOME/.config/nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm +[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion diff --git a/script/install.d/10-pyenv.sh b/script/install.d/10-pyenv.sh index dc5bd62..fed8717 100644 --- a/script/install.d/10-pyenv.sh +++ b/script/install.d/10-pyenv.sh @@ -22,7 +22,7 @@ if ! command -v pyenv &>/dev/null; then elif command -v pacman >/dev/null 2>&1; then # Prefer native packages if available; otherwise install build deps then use installer if ! sudo pacman -Qi pyenv >/dev/null 2>&1; then - sudo pacman -S --noconfirm --needed base-devel openssl zlib bzip2 readline sqlite xz tk libffi curl + sudo pacman -S --noconfirm --needed base-devel openssl zlib-ng-compat bzip2 readline sqlite xz tk libffi curl bash -c "$(curl -fsSL https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer)" else sudo pacman -S --noconfirm --needed pyenv pyenv-virtualenv diff --git a/script/install.d/22-azure.sh b/script/install.d/21-azure.sh similarity index 100% rename from script/install.d/22-azure.sh rename to script/install.d/21-azure.sh diff --git a/script/install.d/21-gh.sh b/script/install.d/22-gh.sh similarity index 100% rename from script/install.d/21-gh.sh rename to script/install.d/22-gh.sh diff --git a/script/install.d/23-copilot.sh b/script/install.d/23-copilot.sh new file mode 100755 index 0000000..c68d31d --- /dev/null +++ b/script/install.d/23-copilot.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +# ----------------------------------------------------------------------------- +# Description: +# Install GitHub Copilot CLI. +# + +if ! command -v copilot &>/dev/null; then + if command -v npm &>/dev/null; then + npm install -g @github/copilot + else + log_warn "Skipping GitHub Copilot CLI install: npm not found" + fi +fi + +copilot --version