Changes PATH settings in .zshrc

This commit is contained in:
Marcin Woźniak 2022-11-18 12:28:57 +01:00
parent 1976d81e59
commit f8152a6489
Signed by: y0rune
GPG Key ID: F204C385F57EB348

24
.zshrc
View File

@ -118,8 +118,11 @@ alias irc="ssh mikrus -t 'screen -r'"
alias rsync="rsync --progress" alias rsync="rsync --progress"
# Cleaning-up # Cleaning-up
export PATH=$HOME/.local/bin:$PATH unset PATH
export PATH=/bin:$PATH
export PATH=/usr/bin:$PATH
export PATH=/sbin:$PATH export PATH=/sbin:$PATH
export PATH=$HOME/.local/bin:$PATH
export GOPATH=$HOME/golang export GOPATH=$HOME/golang
export PATH=$PATH:$HOME/.gem/ruby/2.6.0/bin export PATH=$PATH:$HOME/.gem/ruby/2.6.0/bin
[ -d $HOME/repo/fortigate/bin ] && export PATH=$HOME/repo/fortigate/bin:$PATH [ -d $HOME/repo/fortigate/bin ] && export PATH=$HOME/repo/fortigate/bin:$PATH
@ -139,8 +142,6 @@ if [[ "$(uname)" == "Darwin" ]]; then
# Other export # Other export
export PATH="/usr/local/opt/openssl@3/bin:$PATH" export PATH="/usr/local/opt/openssl@3/bin:$PATH"
export PATH="/opt/homebrew/bin:$PATH" export PATH="/opt/homebrew/bin:$PATH"
export PATH=$PATH:$HOME/Library/Python/3.10/bin
export PATH=$PATH:/usr/local/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/bin
export LDFLAGS="-L/usr/local/opt/openssl@3/lib" export LDFLAGS="-L/usr/local/opt/openssl@3/lib"
export CPPFLAGS="-I/usr/local/opt/openssl@3/include" export CPPFLAGS="-I/usr/local/opt/openssl@3/include"
export PKG_CONFIG_PATH="/usr/local/opt/openssl@3/lib/pkgconfig" export PKG_CONFIG_PATH="/usr/local/opt/openssl@3/lib/pkgconfig"
@ -148,14 +149,27 @@ if [[ "$(uname)" == "Darwin" ]]; then
export PATH=$PATH:$GOPATH/bin export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin export PATH=$PATH:$GOROOT/bin
alias python3='/opt/homebrew/bin/python3.10' export PYTHONVERSION=$(ls -la /opt/homebrew/opt/ |
alias pip3='/opt/homebrew/bin/pip3.10' grep -iEo 'python@.* ->' |
sed 's/ ->//g'|
sort |
tail -n1 |
sed 's/python@//g')
export PATH=$PATH:$HOME/Library/Python/$PYTHONVERSION/bin
export PATH=$PATH:/usr/local/opt/python@$PYTHONVERSION/Frameworks/Python.framework/Versions/$PYTHONVERSION/bin
export PATH="$(brew --prefix python@$PYTHONVERSION)/bin:$PATH"
alias python3='/opt/homebrew/bin/python$PYTHONVERSION'
alias pip3='/opt/homebrew/bin/pip$PYTHONVERSION'
alias lsblk="diskutil list" alias lsblk="diskutil list"
alias Update="~/.config/nvim/installer.sh; brew update; brew upgrade" alias Update="~/.config/nvim/installer.sh; brew update; brew upgrade"
alias ls="ls -Gh" alias ls="ls -Gh"
alias mpv="mpv --no-resume-playback" alias mpv="mpv --no-resume-playback"
alias code="open -a 'Visual Studio Code'" alias code="open -a 'Visual Studio Code'"
# Project
alias meraki="cd $HOME/git/ansible_collections/cisco/meraki/"
fi fi
# Resolve problem with # Resolve problem with