.dotfiles/zsh/.zprofile
Jeremie Fraeys 6ae3048c28 more changes
2025-05-16 03:23:25 -04:00

24 lines
661 B
Bash
Executable file

#!/usr/bin/env zsh
# Determine FZF installation path
if command -v fzf &>/dev/null; then
if [[ "$(command -v fzf)" == "/run/current-system/sw/bin/fzf" ]]; then
FZF_PATH="/run/current-system/sw"
elif command -v brew &>/dev/null; then
FZF_PATH="$(brew --prefix)/opt/fzf"
else
FZF_PATH=""
fi
fi
if [[ -n "$FZF_PATH" && ! "$PATH" =~ (^|:)"$FZF_PATH"(:|$) ]]; then
export PATH="$FZF_PATH:$PATH"
fi
if command -v brew &>/dev/null && brew list curl &>/dev/null; then
BREW_CURL_PATH="$(brew --prefix curl)/bin"
if [[ -d "$BREW_CURL_PATH" && ! "$PATH" =~ (^|:)"$BREW_CURL_PATH"(:|$) ]]; then
export PATH="$BREW_CURL_PATH:$PATH"
fi
fi