Use /etc/profile for PATH
This commit is contained in:
@@ -1,19 +1,13 @@
|
||||
_path=("$HOME/bin"
|
||||
"$HOME/.optbin"
|
||||
"/usr/local/go/bin"
|
||||
"/usr/local/sbin"
|
||||
"/usr/local/bin"
|
||||
"/usr/sbin"
|
||||
"/usr/bin"
|
||||
"/sbin"
|
||||
"/bin"
|
||||
"/usr/games")
|
||||
source /etc/profile
|
||||
|
||||
_path=(
|
||||
"$HOME/bin"
|
||||
"$HOME/.optbin"
|
||||
)
|
||||
|
||||
PATH=""
|
||||
for part in ${_path[@]} ; do
|
||||
PATH="$PATH:${part}"
|
||||
done
|
||||
PATH="${PATH#:}"
|
||||
export PATH
|
||||
|
||||
export EDITOR="nvim"
|
||||
|
||||
Reference in New Issue
Block a user