From 2618b7cbe42c867a1023925af15d7d3502dbe59a Mon Sep 17 00:00:00 2001 From: Nathaniel Landau Date: Thu, 31 Dec 2015 16:07:12 -0500 Subject: [PATCH] Added TLDR to homebrew packages --- lib/setupScriptFunctions.sh | 10 ++++++---- setupScripts/homebrew.sh | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/setupScriptFunctions.sh b/lib/setupScriptFunctions.sh index ade1ce9..422c445 100755 --- a/lib/setupScriptFunctions.sh +++ b/lib/setupScriptFunctions.sh @@ -101,10 +101,6 @@ install-ffmpeg () { # # Credit: https://github.com/cowboy/dotfiles # ------------------------------------------------------ - -# Given a list of desired items and installed items, return a list -# of uninstalled items. -# Credit: https://github.com/cowboy/dotfiles function to_install() { local debugger desired installed i desired_s installed_s remain if [[ "$1" == 1 ]]; then debugger=1; shift; fi @@ -142,6 +138,9 @@ function doInstall () { # FFMPEG takes additional flags if [[ "${item}" = "ffmpeg" ]]; then install-ffmpeg + elif [[ "${item}" = "tldr" ]]; then + brew tap tldr-pages/tldr + brew install tldr else ${INSTALLCOMMAND} ${item} fi @@ -154,6 +153,9 @@ function doInstall () { # FFMPEG takes additional flags if [[ "${item}" = "ffmpeg" ]]; then install-ffmpeg + elif [[ "${item}" = "tldr" ]]; then + brew tap tldr-pages/tldr + brew install tldr else ${INSTALLCOMMAND} ${item} fi diff --git a/setupScripts/homebrew.sh b/setupScripts/homebrew.sh index 529dca2..1079b39 100755 --- a/setupScripts/homebrew.sh +++ b/setupScripts/homebrew.sh @@ -145,6 +145,7 @@ RECIPES=( sqlite tag terminal-notifier + tldr tree unison z