From 59d47138ff6ee653874a07f87fd1c204199922c0 Mon Sep 17 00:00:00 2001 From: shokinn Date: Thu, 18 Jan 2024 22:08:41 +0100 Subject: [PATCH] add getopt to path for my macs --- dotfiles/zshenv | 5 ++++- dotfiles/zshrc | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/dotfiles/zshenv b/dotfiles/zshenv index fe3c7ce..c9774b8 100644 --- a/dotfiles/zshenv +++ b/dotfiles/zshenv @@ -17,7 +17,10 @@ export ANSIBLE_NOCOWS=1 # Include ~/.local/bin to PATH [[ -d "{{@@ env['HOME'] @@}}/.local/bin" ]] && export PATH="{{@@ env['HOME'] @@}}/.local/bin:${PATH}" -# Include $(go env GOPATH) to PATH +{%@@ if profile == 'WVDEWOBMC001307' or profile == 'susanoo.int.r3w.de' @@%}# Include /opt/homebrew/opt/gnu-getopt/bin to PATH +[[ -d "/opt/homebrew/opt/gnu-getopt/bin" ]] && export PATH="/opt/homebrew/opt/gnu-getopt/bin:${PATH}" + +{%@@ endif @@%}# Include $(go env GOPATH) to PATH [[ $(command -v go) ]] && [[ -d "$(go env GOPATH)/bin" ]] && export PATH="$(go env GOPATH)/bin:${PATH}" {%@@ if profile == 'AINCRAD-wsl' or profile == 'AINCRAD' or profile == 'YOETUNHEIMR-wsl' or profile == 'yoetunheimr' or profile == 'ymir' @@%} diff --git a/dotfiles/zshrc b/dotfiles/zshrc index b56361d..c2d1f6b 100644 --- a/dotfiles/zshrc +++ b/dotfiles/zshrc @@ -194,6 +194,9 @@ else local brew_path="/opt/homebrew/bin" fi export PATH="${brew_path}:${PATH}" + +# Include /opt/homebrew/opt/gnu-getopt/bin to PATH +[[ -d "/opt/homebrew/opt/gnu-getopt/bin" ]] && export PATH="/opt/homebrew/opt/gnu-getopt/bin:${PATH}" {%@@ endif @@%} # Functions (or more complex aliases)