feat: copilot cli, tool fixes

This commit is contained in:
2025-12-02 15:16:37 +00:00
parent 700417f20f
commit 4195864823
5 changed files with 21 additions and 1 deletions

View File

@@ -46,3 +46,7 @@ _dots_build_prompt
if [[ -n "$ZSH_BENCH" ]]; then if [[ -n "$ZSH_BENCH" ]]; then
zprof zprof
fi 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

View File

@@ -22,7 +22,7 @@ if ! command -v pyenv &>/dev/null; then
elif command -v pacman >/dev/null 2>&1; then elif command -v pacman >/dev/null 2>&1; then
# Prefer native packages if available; otherwise install build deps then use installer # Prefer native packages if available; otherwise install build deps then use installer
if ! sudo pacman -Qi pyenv >/dev/null 2>&1; then 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)" bash -c "$(curl -fsSL https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer)"
else else
sudo pacman -S --noconfirm --needed pyenv pyenv-virtualenv sudo pacman -S --noconfirm --needed pyenv pyenv-virtualenv

16
script/install.d/23-copilot.sh Executable file
View File

@@ -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