[zsh] More m1 improvements
This commit is contained in:
@@ -4,7 +4,14 @@ export JAVA_HOME=`/usr/libexec/java_home`
|
|||||||
|
|
||||||
# Set path to work with pycharm ...
|
# Set path to work with pycharm ...
|
||||||
# [[ "$PATH" =~ /usr/local/bin ]] || export PATH=$PATH:/usr/local/bin
|
# [[ "$PATH" =~ /usr/local/bin ]] || export PATH=$PATH:/usr/local/bin
|
||||||
export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH:/usr/local/sbin"
|
|
||||||
|
ARCH=`uname -m`
|
||||||
|
if [[ $ARCH == "arm64" ]]; then
|
||||||
|
HOMEBREWPREFIX="/opt/homebrew"
|
||||||
|
else
|
||||||
|
HOMEBREWPREFIX="/usr/local"
|
||||||
|
fi
|
||||||
|
export PATH="$HOMEBREWPREFIX/opt/coreutils/libexec/gnubin:$HOME/.local/bin:$HOMEBREWPREFIX/bin:$PATH:$HOMEBREWPREFIX/sbin"
|
||||||
|
|
||||||
# test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
|
# test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
|
||||||
|
|
||||||
|
|||||||
@@ -2,15 +2,6 @@
|
|||||||
# Initialization code that may require console input (password prompts, [y/n]
|
# Initialization code that may require console input (password prompts, [y/n]
|
||||||
# confirmations, etc.) must go above this block; everything else may go below.
|
# confirmations, etc.) must go above this block; everything else may go below.
|
||||||
|
|
||||||
ARCH=`uname -m`
|
|
||||||
if [[ $ARCH == "arm64" ]]; then
|
|
||||||
PREFIX="/opt/homebrew"
|
|
||||||
else
|
|
||||||
PREFIX="/usr/local"
|
|
||||||
fi
|
|
||||||
|
|
||||||
export PATH="$HOME/.local/bin:$PREFIX/bin:$PATH"
|
|
||||||
|
|
||||||
[[ -f ~/.zsh/.powerline_config ]] && source ~/.zsh/.powerline_config
|
[[ -f ~/.zsh/.powerline_config ]] && source ~/.zsh/.powerline_config
|
||||||
[[ -f ~/.zsh/.user_config ]] && source ~/.zsh/.user_config
|
[[ -f ~/.zsh/.user_config ]] && source ~/.zsh/.user_config
|
||||||
[[ -f ~/.zsh/.virtual_env_config.zsh ]] && source ~/.zsh/.virtual_env_config.zsh
|
[[ -f ~/.zsh/.virtual_env_config.zsh ]] && source ~/.zsh/.virtual_env_config.zsh
|
||||||
|
|||||||
Reference in New Issue
Block a user