From 9ac0a9895ca8ca80b44ea7b332cc31813362f9a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Sun, 3 Oct 2021 22:33:28 +0200 Subject: [PATCH] Use /etc/profile for PATH --- zsh/zprofile.j2 | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/zsh/zprofile.j2 b/zsh/zprofile.j2 index 51e971e..84db519 100644 --- a/zsh/zprofile.j2 +++ b/zsh/zprofile.j2 @@ -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"