GithubHelp home page GithubHelp logo

wenesak / autobrew Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bradsec/autobrew

0.0 0.0 0.0 126 KB

A bash script to automate and batch install macOS applications and packages using Homebrew

License: MIT License

Shell 100.00%

autobrew's Introduction

AutoBrew

AutoBrew is bash shell script to automate and batch install a custom list of macOS terminal packages or GUI applications using the Homebrew (https://brew.sh) package manager. The script will also install homebrew if it is not already installed. Ideal for new macOS installations or macOS VMs to save time installing individual packages or using the Apple App Store.

Requirements

Homebrew does require the Xcode commandline tools. Use the command xcode-select --install from a terminal window to install. The script will prompt if the commandline tools are not installed. The homebrew installer does install the commandline tools however it does not give progress of the installation like installing them manually does. The commandline tools are quite large and may take time depending on your Internet connection speed.

Usage

To customise your own list of applications use the following method -

  1. Download and extract the respository.

  2. Edit autobrew.sh with a text editor and modify the tap_list, term_list and cask_list variables under the main() function with the applications or packages you want to install. Comment out any lists if they not required or leave blank. The tap_list may not be required unless you need applications or packages which are not in the core Homebrew tap. In the example the tap homebrew/cask-fonts has been add to the tap_list variable as this then allows for installation of fonts such as the font-fira-code shown under the cask_list.

  3. Run the script with bash autobrew.sh or chmod +x autobrew.sh followed by ./autobrew.sh. The script can be run as a normal user not as root or with sudo, however you may be prompted for a password to install Xcode commandline tools and the main homebrew package if they are not already installed.

To run the script direct you can use curl or wget (if already installed) with one of the following commands -

bash -c "$(curl -fsSL https://raw.githubusercontent.com/wenesak/autobrew/main/autobrew.sh)"

bash -c "$(wget -O- https://raw.githubusercontent.com/wenesak/autobrew/main/autobrew.sh)"

Note(s):

  • Add zsh autocompletetion: sudo git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions Once that is done, add the plugin in the ~/.zshrc file's plugin list.
    plugins=(
    ...
    zsh-autosuggestions

)

- After the initial Xcode commmand line tools install and homebrew install most applications will be unattended and not require user input. However, some applications which require greater system or kernel access such as virus scanners like `malwarebytes` etc. may require your password.  
- Due to the security settings in macOS when you run some brew installed packages/applications for the first time you may need to allow them in the 'Security & Privacy' settings. Depending on the application you may also need to grant access to the required area under 'Security & Privacy' > 'Privacy' tab.

autobrew's People

Contributors

bradsec avatar wenesak avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.