From 240e01257d3b4c14f0e2112ea0acba82bb733a90 Mon Sep 17 00:00:00 2001 From: shokinn Date: Thu, 11 Jan 2024 22:02:14 +0100 Subject: [PATCH] use gnu-getop, when installed via brew --- dotfiles/zshenv | 3 +++ dotfiles/zshrc | 3 +++ 2 files changed, 6 insertions(+) diff --git a/dotfiles/zshenv b/dotfiles/zshenv index fe3c7ce..7251b70 100644 --- a/dotfiles/zshenv +++ b/dotfiles/zshenv @@ -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 diff --git a/dotfiles/zshrc b/dotfiles/zshrc index b56361d..59f94df 100644 --- a/dotfiles/zshrc +++ b/dotfiles/zshrc @@ -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