[ZSH] More ARM fixes
This commit is contained in:
@@ -4,7 +4,7 @@ ARCH=`uname -m`
|
||||
if [[ $ARCH == "arm64" ]]; then
|
||||
PREFIX="/opt/homebrew/"
|
||||
else
|
||||
PREFIX="/usr/local"
|
||||
PREFIX="/usr/local/"
|
||||
fi
|
||||
|
||||
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 VIRTUALENVWRAPPER_VIRTUALENV=/usr/local/bin/virtualenv
|
||||
export VIRTUALENVWRAPPER_VIRTUALENV=$PREFIX/bin/virtualenv
|
||||
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.
|
||||
# Initialization code that may require console input (password prompts, [y/n]
|
||||
# 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"
|
||||
#fi
|
||||
export PATH="$HOME/.local/bin:/opt/homebrew/bin:$PATH"
|
||||
|
||||
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/.user_config ]] && source ~/.zsh/.user_config
|
||||
|
||||
Reference in New Issue
Block a user