Make gnu-getopt be specific to UAC00013

This commit is contained in:
2019-02-04 14:38:45 +00:00
parent 2f8a368e98
commit 3ddcef5402
3 changed files with 13 additions and 2 deletions

View File

@@ -27,7 +27,6 @@ brew 'git'
brew 'git-crypt' brew 'git-crypt'
brew 'git-standup' brew 'git-standup'
brew 'global', args: ['with-ctags', 'with-pygments'] brew 'global', args: ['with-ctags', 'with-pygments']
brew 'gnu-getopt'
brew 'go' brew 'go'
brew 'htop' brew 'htop'
brew 'httpie' brew 'httpie'
@@ -250,4 +249,8 @@ if hostname == 'noct'
mas 'feedly', id: 865_500_966 mas 'feedly', id: 865_500_966
end end
if hostname == 'UAC00013'
brew 'gnu-getopt'
end
# rubocop:enable Naming/FileName # rubocop:enable Naming/FileName

7
zsh/gnu-getopt.zsh Normal file
View File

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

View File

@@ -110,9 +110,10 @@ source "$DOTZSH/linux.zsh"
# Utils # Utils
source "$DOTZSH/emacs.zsh" source "$DOTZSH/emacs.zsh"
source "$DOTZSH/git.zsh" source "$DOTZSH/git.zsh"
source "$DOTZSH/gnu-getopt.zsh"
source "$DOTZSH/homebrew.zsh" source "$DOTZSH/homebrew.zsh"
source "$DOTZSH/tmux.zsh"
source "$DOTZSH/less.zsh" source "$DOTZSH/less.zsh"
source "$DOTZSH/tmux.zsh"
# Development # Development
source "$DOTZSH/android-sdk.zsh" source "$DOTZSH/android-sdk.zsh"