Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions includes/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ esac

all_paths=(
"${HOME}/bin"
"${HOME}/.local/bin"
"/usr/local/bin"
"/usr/local/sbin"
"/usr/bin"
Expand All @@ -83,6 +84,7 @@ all_paths=(
"/mnt/c/Program Files/Kubernetes/Minikube"
"/var/lib/snapd/snap/bin"
"/opt/homebrew/opt/mysql/bin"
"/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
)

for dir in "${all_paths[@]}"; do
Expand Down
29 changes: 29 additions & 0 deletions includes/late_50_tools.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,35 @@ else
echo "zoxide not found, consider installing it!"
fi

# Configure uv (fast Python package manager)
if (( $+commands[uv] )); then
if [[ -z "${UV_CACHE_DIR}" ]]; then
if [[ -n "${XDG_CACHE_HOME}" ]]; then
export UV_CACHE_DIR="${XDG_CACHE_HOME}/uv"
elif (( IS_MACOS )); then
export UV_CACHE_DIR="${HOME}/Library/Caches/uv"
else
export UV_CACHE_DIR="${HOME}/.cache/uv"
fi
fi

if [[ -z "${UV_PYTHON_INSTALL_DIR}" ]]; then
if [[ -n "${XDG_DATA_HOME}" ]]; then
export UV_PYTHON_INSTALL_DIR="${XDG_DATA_HOME}/uv/python"
elif (( IS_MACOS )); then
export UV_PYTHON_INSTALL_DIR="${HOME}/Library/Application Support/uv/python"
Copy link

Copilot AI Dec 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The UV_PYTHON_INSTALL_DIR path on macOS contains a space ("Application Support") which could cause issues in shell scripts if not properly quoted. While the variable itself is quoted here during export, downstream usage may not always quote it properly. Consider using a path without spaces, or ensure all downstream usages properly quote this variable.

Suggested change
export UV_PYTHON_INSTALL_DIR="${HOME}/Library/Application Support/uv/python"
export UV_PYTHON_INSTALL_DIR="${HOME}/Library/ApplicationSupport/uv/python"

Copilot uses AI. Check for mistakes.
else
export UV_PYTHON_INSTALL_DIR="${HOME}/.local/share/uv/python"
fi
fi

uv_completion_cache="${ZSH_CACHE_DIR}/uv_completion.zsh"
if is_stale_file "${uv_completion_cache}"; then
uv generate-shell-completion zsh > "${uv_completion_cache}"
fi
source_compiled "${uv_completion_cache}"
fi

# if PHP composer is installed, add it to the path
[ -d "${HOME}/.composer/vendor/bin" ] && export PATH="${HOME}/.composer/vendor/bin:${PATH}"

Expand Down