diff --git a/Brewfile b/Brewfile index cbf6024..38b7785 100644 --- a/Brewfile +++ b/Brewfile @@ -27,7 +27,6 @@ brew 'git' brew 'git-crypt' brew 'git-standup' brew 'global', args: ['with-ctags', 'with-pygments'] -brew 'gnu-getopt' brew 'go' brew 'htop' brew 'httpie' @@ -250,4 +249,8 @@ if hostname == 'noct' mas 'feedly', id: 865_500_966 end +if hostname == 'UAC00013' + brew 'gnu-getopt' +end + # rubocop:enable Naming/FileName diff --git a/zsh/gnu-getopt.zsh b/zsh/gnu-getopt.zsh new file mode 100644 index 0000000..e819395 --- /dev/null +++ b/zsh/gnu-getopt.zsh @@ -0,0 +1,7 @@ +# +# Use gnu-getopt if it's available +# + +if [ -f "/usr/local/opt/gnu-getopt/bin/getopt" ]; then + path_prepend "/usr/local/opt/gnu-getopt/bin" +fi diff --git a/zshrc.zsh b/zshrc.zsh index ce5bb04..f98e01c 100644 --- a/zshrc.zsh +++ b/zshrc.zsh @@ -110,9 +110,10 @@ source "$DOTZSH/linux.zsh" # Utils source "$DOTZSH/emacs.zsh" source "$DOTZSH/git.zsh" +source "$DOTZSH/gnu-getopt.zsh" source "$DOTZSH/homebrew.zsh" -source "$DOTZSH/tmux.zsh" source "$DOTZSH/less.zsh" +source "$DOTZSH/tmux.zsh" # Development source "$DOTZSH/android-sdk.zsh"