Export path to ~/.config/path

This commit is contained in:
Victor Timofei 2021-12-19 01:54:54 +02:00
parent 8d657f434a
commit edf941e906
Signed by: vtimofei
GPG Key ID: B790DCEBE281403A
3 changed files with 26 additions and 21 deletions

21
.config/path Normal file
View File

@ -0,0 +1,21 @@
# my executables
export PATH=/home/vtimofei/scripts:$PATH
export PATH=/home/vtimofei/bin:$PATH
export PATH=/home/vtimofei/.local/bin:$PATH
# go env
export PATH=$PATH:/usr/local/go/bin
export GOPATH=/home/vtimofei/go
export GOBIN=${GOPATH}/bin
export PATH=$GOBIN:$PATH
# rust env
export PATH=/home/vtimofei/.cargo/bin:$PATH
# k8s dev
export k8s_working_dir="${GOPATH}/src/k8s.io"
export user="victor-timofei"
export PATH="/home/vtimofei/go/src/k8s.io/kubernetes/third_party/etcd:${PATH}"
export K8S_PATH="$k8s_working_dir/kubernetes"
export PATH="/var/lib/snapd/snap/bin:${PATH}"

View File

@ -63,7 +63,10 @@ dwmblocks &
# Export some paths here that need to be picked up by
# the dmenu
export PATH=$PATH:/home/vtimofei/firefox
source ~/.config/path
# Disable the laptop keyboard
# sleep 5; /home/vtimofei/scripts/laptopkb-disable &
# Finally exec my window manager
exec dwm

21
.zshrc
View File

@ -132,27 +132,8 @@ bindkey -M menuselect 'down' vi-down-line-or-history
bindkey -M menuselect 'up' vi-up-line-or-history
bindkey -M menuselect 'right' vi-forward-char
# my executables
export PATH=/home/vtimofei/scripts:$PATH
export PATH=/home/vtimofei/bin:$PATH
export PATH=/home/vtimofei/.local/bin:$PATH
source ~/.config/path
# go env
export PATH=$PATH:/usr/local/go/bin
export GOPATH=/home/vtimofei/go
export GOBIN=${GOPATH}/bin
export PATH=$GOBIN:$PATH
# rust env
export PATH=/home/vtimofei/.cargo/bin:$PATH
# k8s dev
export k8s_working_dir="${GOPATH}/src/k8s.io"
export user="victor-timofei"
export PATH="/home/vtimofei/go/src/k8s.io/kubernetes/third_party/etcd:${PATH}"
export K8S_PATH="$k8s_working_dir/kubernetes"
export PATH="/var/lib/snapd/snap/bin:${PATH}"
alias chrome="google-chrome-stable </dev/null &>/dev/null &"
alias ls="exa"