From 686a69fedfc1317517592713a7ae93e454035169 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Tue, 22 Oct 2024 19:15:59 +0200 Subject: [PATCH] zprofile: Add Go and Perl related dirs to PATH --- .config/zsh/.zprofile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.config/zsh/.zprofile b/.config/zsh/.zprofile index 846b748..279d6f5 100644 --- a/.config/zsh/.zprofile +++ b/.config/zsh/.zprofile @@ -51,6 +51,12 @@ fi if [[ $OSTYPE =~ darwin && ! $PATH =~ "/Library/Apple/usr/bin" ]]; then export PATH="${PATH:+$PATH:}/Library/Apple/usr/bin" fi +if [[ $GOPATH && -e $GOPATH && ! $PATH =~ $GOPATH/bin ]]; then + export PATH="${PATH:+$PATH:}$GOPATH/bin" +fi +if [[ -d /usr/bin/vendor_perl/ && ! $PATH =~ /usr/bin/vendor_perl/ ]]; then + export PATH="${PATH:+$PATH:}/usr/bin/vendor_perl" +fi export ZETTELKASTEN_NOTES="$HOME/docs/notes"