use gnu-getop, when installed via brew

This commit is contained in:
Philip Henning 2024-01-11 22:02:14 +01:00
parent c2fb37e781
commit 240e01257d
2 changed files with 6 additions and 0 deletions

View file

@ -20,6 +20,9 @@ export ANSIBLE_NOCOWS=1
# Include $(go env GOPATH) to PATH
[[ $(command -v go) ]] && [[ -d "$(go env GOPATH)/bin" ]] && export PATH="$(go env GOPATH)/bin:${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}"
{%@@ if profile == 'AINCRAD-wsl' or profile == 'AINCRAD' or profile == 'YOETUNHEIMR-wsl' or profile == 'yoetunheimr' or profile == 'ymir' @@%}
# Connect to windows ssh pageant
# https://github.com/BlackReloaded/wsl2-ssh-pageant

View file

@ -199,6 +199,9 @@ export PATH="${brew_path}:${PATH}"
# Functions (or more complex aliases)
source {{@@ env['HOME'] @@}}/.commonfunc
# 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}"
{%@@ if profile == 'ymir' @@%}
autoload -Uz compinit
zstyle ':completion:*' menu select