mirror of https://gitlab.com/dabruh/dotfiles.git
Move homebrew dir
This commit is contained in:
parent
674d3f755d
commit
c8d02955dc
|
@ -102,8 +102,11 @@ prepend_paths=(
|
|||
)
|
||||
append_paths=()
|
||||
|
||||
[ -f "$HOME/homebrew/bin/brew" ] && eval "$("$HOME/homebrew/bin/brew" shellenv)"
|
||||
[ -n "$HOMEBREW_PREFIX" ] && append_paths+=("$HOMEBREW_PREFIX/bin" "$HOMEBREW_PREFIX/sbin")
|
||||
HOMEBREW_PREFIX="$XDG_DATA_HOME/homebrew"
|
||||
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
|
||||
prepend_path_with_entries "${prepend_paths[@]}"
|
||||
|
|
|
@ -128,13 +128,13 @@ git_prompt_string() {
|
|||
|
||||
## Plugins section: Enable fish style features
|
||||
# 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
|
||||
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
|
||||
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_HIGHLIGHT_STYLE='fg=8'
|
||||
|
||||
|
|
|
@ -162,7 +162,7 @@ function install_picom() {
|
|||
}
|
||||
|
||||
function setup_homebrew() {
|
||||
local dir="$HOME/homebrew"
|
||||
local dir="${XDG_DATA_HOME:?}/homebrew"
|
||||
|
||||
echo "Setting up Homebrew."
|
||||
|
||||
|
|
Loading…
Reference in New Issue