From 3ddcef540249a1fda5f320886db9c005c40f9f28 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 4 Feb 2019 14:38:45 +0000 Subject: [PATCH] Make gnu-getopt be specific to UAC00013 --- Brewfile | 5 ++++- zsh/gnu-getopt.zsh | 7 +++++++ zshrc.zsh | 3 ++- 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 zsh/gnu-getopt.zsh 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"