add getopt to path for my macs

This commit is contained in:
Philip Henning 2024-01-18 22:08:41 +01:00
parent 2ce072c6a4
commit 59d47138ff
2 changed files with 7 additions and 1 deletions

View file

@ -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' @@%}

View file

@ -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)