mirror of
https://github.com/JanJastrow/.dotfiles.git
synced 2024-11-22 18:49:55 +01:00
Added dynamic homebrew path
This commit is contained in:
parent
6505fc5a75
commit
b8b7c9377f
17
zsh/env
17
zsh/env
@ -13,10 +13,10 @@ export EDITOR="nano"
|
|||||||
|
|
||||||
# set `ll` command - b(etter)ls per default
|
# set `ll` command - b(etter)ls per default
|
||||||
alias ll=bls
|
alias ll=bls
|
||||||
if [[ -x `which /usr/local/bin/exa` || -x `which /opt/homebrew/bin/exa` ]]; then
|
if test -f "$homebrew_path/exa"; then
|
||||||
alias ll=exa
|
alias ll=exa
|
||||||
fi
|
fi
|
||||||
if [[ -x `which /usr/local/bin/lsd` || -x `which /opt/homebrew/bin/lsd` ]]; then
|
if test -f "$homebrew_path/lsd"; then
|
||||||
alias ll=lsd
|
alias ll=lsd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -60,17 +60,12 @@ if [[ $platform == 'macOS' ]]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -d "/opt/homebrew/opt/openjdk/bin"; then
|
if test -d "$homebrew_opt/openjdk/bin/"; then
|
||||||
export PATH="/opt/homebrew/opt/openjdk/bin:$PATH"
|
export PATH="$homebrew_opt/openjdk/bin:$PATH"
|
||||||
fi
|
|
||||||
if test -d "/usr/local/opt/java/bin/"; then
|
|
||||||
export PATH="/usr/local/opt/java/bin/:$PATH"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
/usr/local/opt/java/bin/
|
if test -d "$homebrew_opt/ruby"; then
|
||||||
|
export PATH="$homebrew_opt/ruby/bin:$PATH"
|
||||||
if test -d "/usr/local/opt/ruby"; then
|
|
||||||
export PATH="/usr/local/opt/ruby/bin:$PATH"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -d "/usr/local/sbin"; then
|
if test -d "/usr/local/sbin"; then
|
||||||
|
10
zshrc
10
zshrc
@ -30,6 +30,16 @@ elif [[ $(uname -p) == 'x86_64' ]]; then
|
|||||||
arch="x86_64"
|
arch="x86_64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Homebrew
|
||||||
|
homebrew_path=""
|
||||||
|
if test -f "/opt/homebrew/bin/brew"; then
|
||||||
|
homebrew_path="/opt/homebrew/bin"
|
||||||
|
homebrew_opt="/opt/homebrew/opt"
|
||||||
|
elif test -f "/usr/local/bin/brew"; then
|
||||||
|
homebrew_path="/usr/local/bin"
|
||||||
|
homebrew_path="/usr/local/opt"
|
||||||
|
fi
|
||||||
|
|
||||||
# Load additional settings
|
# Load additional settings
|
||||||
source $HOME/.dotfiles/zsh/env
|
source $HOME/.dotfiles/zsh/env
|
||||||
source $HOME/.dotfiles/zsh/alias
|
source $HOME/.dotfiles/zsh/alias
|
||||||
|
Loading…
Reference in New Issue
Block a user