Move homebrew dir

This commit is contained in:
dabruh 2024-04-11 12:15:19 +02:00
parent 674d3f755d
commit c8d02955dc
3 changed files with 9 additions and 6 deletions

View File

@ -102,8 +102,11 @@ prepend_paths=(
) )
append_paths=() append_paths=()
[ -f "$HOME/homebrew/bin/brew" ] && eval "$("$HOME/homebrew/bin/brew" shellenv)" HOMEBREW_PREFIX="$XDG_DATA_HOME/homebrew"
[ -n "$HOMEBREW_PREFIX" ] && append_paths+=("$HOMEBREW_PREFIX/bin" "$HOMEBREW_PREFIX/sbin") if [ -x "$HOMEBREW_PREFIX/bin/brew" ]; then
eval "$("$HOMEBREW_PREFIX/bin/brew" shellenv)"
append_paths+=("$HOMEBREW_PREFIX/bin" "$HOMEBREW_PREFIX/sbin")
fi
rm_path_entries "${prepend_paths[@]}" "${append_paths[@]}" # Ensure we clean up first rm_path_entries "${prepend_paths[@]}" "${append_paths[@]}" # Ensure we clean up first
prepend_path_with_entries "${prepend_paths[@]}" prepend_path_with_entries "${prepend_paths[@]}"

View File

@ -128,13 +128,13 @@ git_prompt_string() {
## Plugins section: Enable fish style features ## Plugins section: Enable fish style features
# Use syntax highlighting # Use syntax highlighting
source $HOME/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh source $HOME/.local/share/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# Use history substring search # Use history substring search
source $HOME/homebrew/share/zsh-history-substring-search/zsh-history-substring-search.zsh source $HOME/.local/share/homebrew/share/zsh-history-substring-search/zsh-history-substring-search.zsh
# Use autosuggestion # Use autosuggestion
source $HOME/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh source $HOME/.local/share/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=20 ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=20
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=8' ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=8'

View File

@ -162,7 +162,7 @@ function install_picom() {
} }
function setup_homebrew() { function setup_homebrew() {
local dir="$HOME/homebrew" local dir="${XDG_DATA_HOME:?}/homebrew"
echo "Setting up Homebrew." echo "Setting up Homebrew."