浏览代码

use gimme_pkg helper in gimmes for smarter brew logic and to facilitate install/upgrades

Kyle Davis 7 年之前
父节点
当前提交
9f792c9629
共有 8 个文件被更改,包括 8 次插入8 次删除
  1. 1 1
      gimmes/android-studio
  2. 1 1
      gimmes/atom
  3. 1 1
      gimmes/basictex
  4. 1 1
      gimmes/charles
  5. 1 1
      gimmes/eclipse-jee
  6. 1 1
      gimmes/google-chrome
  7. 1 1
      gimmes/java
  8. 1 1
      gimmes/vscode

+ 1 - 1
gimmes/android-studio

@@ -4,7 +4,7 @@ set -o errexit -o pipefail
 gimme java
 
 if [[ "$OS" = "Darwin" ]]; then
-	brew cask install android-studio
+	gimme_pkg android-studio
 else
 	if ! has android-studio; then
 		URL='https://dl.google.com/dl/android/studio/ide-zips/2.0.0.20/android-studio-ide-143.2739321-linux.zip'

+ 1 - 1
gimmes/atom

@@ -1,7 +1,7 @@
 #!/bin/bash
 set -o errexit -o pipefail
 if [[ "$OS" = "Darwin" ]]; then
-	brew cask install atom
+	gimme_pkg atom
 	defaults write com.github.atom ApplePressAndHoldEnabled -bool false
 else
 	if ! has atom; then

+ 1 - 1
gimmes/basictex

@@ -2,7 +2,7 @@
 set -o errexit -o pipefail
 if ! has tlmgr; then
 	if [[ "$OS" = "Darwin" ]]; then
-		brew cask install basictex
+		gimme_pkg basictex
 		export PATH="$PATH:/Library/TeX/texbin"
 		sudo tlmgr update --self
 		sudo tlmgr install titling framed

+ 1 - 1
gimmes/charles

@@ -1,7 +1,7 @@
 #!/bin/bash
 set -o errexit -o pipefail
 if [[ "$OS" = "Darwin" ]]; then
-	brew cask install charles
+	gimme_pkg charles
 else
 	echo "TODO: add Charles for Linux!"
 fi

+ 1 - 1
gimmes/eclipse-jee

@@ -4,7 +4,7 @@ set -o errexit -o pipefail
 gimme java
 
 if [[ "$OS" = "Darwin" ]]; then
-	brew cask install eclipse-jee
+	gimme_pkg eclipse-jee
 else
 	if ! has eclipse; then
 		URL='http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/mars/R/eclipse-jee-mars-R-linux-gtk-x86_64.tar.gz&r=1'

+ 1 - 1
gimmes/google-chrome

@@ -1,7 +1,7 @@
 #!/bin/bash
 set -o errexit -o pipefail
 if [[ "$OS" = "Darwin" ]]; then
-	brew cask install google-chrome
+	gimme_pkg google-chrome
 else
 	if ! has google-chrome && ! has chromium-browser; then
 		gimme_pkg chromium-browser

+ 1 - 1
gimmes/java

@@ -2,7 +2,7 @@
 set -o errexit -o pipefail
 
 if [[ "$OS" = "Darwin" ]]; then
-	brew cask install java
+	gimme_pkg java
 else
 	has java  ||  gimme_pkg openjdk-8-jdk
 fi

+ 1 - 1
gimmes/vscode

@@ -1,7 +1,7 @@
 #!/bin/bash
 set -o errexit -o pipefail
 if [[ "$OS" = "Darwin" ]]; then
-	brew cask install visual-studio-code
+	gimme_pkg visual-studio-code
 else
 	if ! has code; then
 		URL="https://go.microsoft.com/fwlink/?LinkID=760868"