[ZSH] More ARM fixes
This commit is contained in:
@@ -4,7 +4,7 @@ ARCH=`uname -m`
|
|||||||
if [[ $ARCH == "arm64" ]]; then
|
if [[ $ARCH == "arm64" ]]; then
|
||||||
PREFIX="/opt/homebrew/"
|
PREFIX="/opt/homebrew/"
|
||||||
else
|
else
|
||||||
PREFIX="/usr/local"
|
PREFIX="/usr/local/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
function set_permissions {
|
function set_permissions {
|
||||||
|
|||||||
@@ -1,4 +1,11 @@
|
|||||||
|
ARCH=`uname -m`
|
||||||
|
if [[ $ARCH == "arm64" ]]; then
|
||||||
|
PREFIX="/opt/homebrew"
|
||||||
|
else
|
||||||
|
PREFIX="/usr/local"
|
||||||
|
fi
|
||||||
|
|
||||||
export WORKON_HOME=~/python-envs
|
export WORKON_HOME=~/python-envs
|
||||||
export VIRTUALENVWRAPPER_VIRTUALENV=/usr/local/bin/virtualenv
|
export VIRTUALENVWRAPPER_VIRTUALENV=$PREFIX/bin/virtualenv
|
||||||
mkdir -p $WORKON_HOME
|
mkdir -p $WORKON_HOME
|
||||||
source /opt/homebrew/bin/virtualenvwrapper.sh
|
source $PREFIX/bin/virtualenvwrapper.sh
|
||||||
|
|||||||
13
zsh/.zshrc
13
zsh/.zshrc
@@ -1,10 +1,15 @@
|
|||||||
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
||||||
# 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.
|
||||||
#if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
|
||||||
#source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
ARCH=`uname -m`
|
||||||
#fi
|
if [[ $ARCH == "arm64" ]]; then
|
||||||
export PATH="$HOME/.local/bin:/opt/homebrew/bin:$PATH"
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user