From 804173ec9690bd1088edc383fb1395b8191a0cb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Sun, 19 Feb 2023 12:22:53 +0100 Subject: [PATCH] Moved the PATH upper --- .zshrc | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.zshrc b/.zshrc index 40cbde8..6153f88 100644 --- a/.zshrc +++ b/.zshrc @@ -84,6 +84,22 @@ alias svm="sudo nvim /etc/portage/make.conf" alias svr="sudo nvim /etc/portage/repos.conf" alias svp="sudo nvim /etc/portage/package.use" alias sva="sudo nvim /etc/portage/package.accept_keywords" + +# Declerating the PATHs +unset PATH +export PATH=/bin:$PATH +export PATH=/usr/bin:$PATH +export PATH=/usr/sbin:$PATH +export PATH=/sbin:$PATH +export PATH=/usr/local/bin:$PATH +export PATH=$HOME/go/bin:$PATH +export PATH=$HOME/golang/bin:$PATH +export PATH=$HOME/.local/bin:$PATH +export PATH=$HOME/node_modules/.bin:$PATH +export GOPATH=$HOME/golang +export PATH=$PATH:$HOME/.gem/ruby/2.6.0/bin +[ -d $HOME/repo/fortigate/bin ] && export PATH=$HOME/repo/fortigate/bin:$PATH + alias emerge="sudo emerge" alias channel-check='sudo iwlist wlan0 scan | egrep -i "essid|frequency"' alias grep="grep" @@ -130,25 +146,9 @@ alias update-brew="brew upgrade --cask" alias irc="ssh mikrus -t 'screen -r'" alias rsync="rsync --progress" -# Cleaning-up -unset PATH -export PATH=/bin:$PATH -export PATH=/usr/bin:$PATH -export PATH=/usr/sbin:$PATH -export PATH=/sbin:$PATH -export PATH=/usr/local/bin:$PATH -export PATH=$HOME/go/bin:$PATH -export PATH=$HOME/golang/bin:$PATH -export PATH=$HOME/.local/bin:$PATH -export PATH=$HOME/node_modules/.bin:$PATH -export GOPATH=$HOME/golang -export PATH=$PATH:$HOME/.gem/ruby/2.6.0/bin -[ -d $HOME/repo/fortigate/bin ] && export PATH=$HOME/repo/fortigate/bin:$PATH - # History export HISTTIMEFORMAT="%F %T " - # Export for WSL if [[ "$(uname -sr)" =~ "Microsoft" ]]; then export GOROOT=/usr/lib/go