Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installs brew packages from Brewfile instead #84

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 3 additions & 86 deletions config.js
Original file line number Diff line number Diff line change
@@ -1,83 +1,9 @@
module.exports = {
brew: [
// http://conqueringthecommandline.com/book/ack_ag
'ack',
'ag',
// https://github.com/wting/autojump
'autojump',
// alternative to `cat`: https://github.com/sharkdp/bat
'bat',
// Install GNU core utilities (those that come with macOS are outdated)
// Don’t forget to add `$(brew --prefix coreutils)/libexec/gnubin` to `$PATH`.
'coreutils',
'dos2unix',
// Install GNU `find`, `locate`, `updatedb`, and `xargs`, `g`-prefixed
'findutils',
// 'fortune',
'fzf',
'readline', // ensure gawk gets good readline
'gawk',
// http://www.lcdf.org/gifsicle/ (because I'm a gif junky)
'gifsicle',
'gnupg',
// Install GNU `sed`, overwriting the built-in `sed`
// so we can do "sed -i 's/foo/bar/' file" instead of "sed -i '' 's/foo/bar/' file"
'gnu-sed --with-default-names',
// upgrade grep so we can get things like inverted match (-v)
'grep --with-default-names',
// better, more recent grep
'homebrew/dupes/grep',
// https://github.com/jkbrzt/httpie
'httpie',
// jq is a sort of JSON grep
'jq',
// Mac App Store CLI: https://github.com/mas-cli/mas
'mas',
// Install some other useful utilities like `sponge`
'moreutils',
'nmap',
// 'openconnect',
'reattach-to-user-namespace',
// better/more recent version of screen
'homebrew/dupes/screen',
'tmux',
'todo-txt',
'tree',
'ttyrec',
// better, more recent vim
'vim --with-client-server --with-override-system-vi',
'watch',
// Install wget with IRI support
'wget --enable-iri'
// Moved to ./homedir/.Brewfile
],
cask: [
//'adium',
//'amazon-cloud-drive',
//'atom',
// 'box-sync',
//'comicbooklover',
//'diffmerge',
'docker', // docker for mac
//'dropbox',
//'evernote',
'flux',
'gpg-suite',
//'ireadfast',
'iterm2',
'little-snitch',
// 'macbreakz',
'micro-snitch',
// 'signal',
//'macvim',
'sizeup',
//'sketchup',
'slack',
// 'the-unarchiver',
//'torbrowser',
//'transmission',
'visual-studio-code',
//'vlc',
'xquartz'
// Moved to ./homedir/.Brewfile
],
gem: [
],
Expand All @@ -95,15 +21,6 @@ module.exports = {
// ,'yo'
],
mas: [
//com.apple.dt.Xcode (10.2.1)
'497799835',
//com.if.Amphetamine (4.1.6)
//'937984704',
//net.shinyfrog.bear (1.6.15)
//'1091189122',
//com.monosnap.monosnap (3.5.8)
//'540348655',
//com.app77.pwsafemac (4.17)
//'520993579',
// Moved to ./homedir/.Brewfile
],
};
91 changes: 91 additions & 0 deletions homedir/.Brewfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-drivers"
tap "homebrew/cask-fonts"
tap "homebrew/cask-versions"
tap "homebrew/core"
tap "homebrew/services"
tap "homebrew/dupes"
# http://conqueringthecommandline.com/book/ack_ag
brew "ack"
brew "ag"
# https://github.com/wting/autojump
brew "autojump"
# alternative to `cat`: https://github.com/sharkdp/bat
brew "bat"
# Install GNU core utilities (those that come with macOS are outdated)
# Don’t forget to add `$(brew --prefix coreutils)/libexec/gnubin` to `$PATH`.
brew "coreutils"
brew "dos2unix"
# Install GNU `find`, `locate`, `updatedb`, and `xargs`, `g`-prefixed
brew "findutils"
# brew "fortune"
brew "fzf"
brew "readline" # ensure gawk gets good readline
brew "gawk"
# http://www.lcdf.org/gifsicle/ (because I'm a gif junky)
brew "gifsicle"
brew "gnupg"
# Install GNU `sed`, overwriting the built-in `sed`
# so we can do "sed -i 's/foo/bar/' file" instead of "sed -i '' 's/foo/bar/' file"
brew "gnu-sedbrew", args: ["--with-default-names"]
# upgrade grep so we can get things like inverted match (-v)
brwe "grepbrew", args: ["--with-default-names"]
# better, more recent grep
brew "homebrew/dupes/grep"
# https://github.com/jkbrzt/httpie
brew "httpie"
# jq is a sort of JSON grep
brew "jq"
# Mac App Store CLI: https://github.com/mas-cli/mas
brew "mas"
# Install some other useful utilities like `sponge`
brew "moreutils"
brew "nmap"
# brew "openconnect"
brew "reattach-to-user-namespace"
# better/more recent version of screen
brew "homebrew/dupes/screen"
brew "tmux"
brew "todo-txt"
brew "tree"
brew "ttyrec"
# better, more recent vim
brew "vim", args: ["--with-client-serverbrew", "--with-override-system-vi"]
brew "watch"
# Install wget with IRI support
brew "wget", args: ["--enable-iri"]
# Homebrew Casks
# cask "adium"
# cask "amazon-cloud-drive"
# cask "atom"
# cask "box-sync"
# cask "comicbooklover"
# cask "diffmerge"
cask "docker" # docker for mac
# cask "dropbox"
# cask "evernote"
cask "flux"
cask "gpg-suite"
# cask "ireadfast"
cask "iterm2"
cask "little-snitch"
# cask "macbreakz"
cask "micro-snitch"
# cask "signal"
# cask "macvim"
cask "sizeup"
# cask "sketchup"
cask "slack"
# cask "the-unarchiver"
# cask "torbrowser"
# cask "transmission"
cask "visual-studio-code"
# cask "vlc"
cask "xquartz"
# Mac AppStore Apps
mas "Xcode", id: 497799835
# mas "Amphetamine", id: 937984704
# mas "bear", id: 1091189122
# mas "monosnap", id: 540348655
# mas "pwsafemac", id: 520993579
8 changes: 8 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,14 @@ if [[ $response =~ (y|yes|Y) ]];then
fi


read -r -p "Install packages from Brewfile? [y|N] " response
if [[ $response =~ (y|yes|Y) ]]; then
bot "installing packages from Brewfile"
brew bundle --file ~/.Brewfile
ok
fi


# if [[ -d "/Library/Ruby/Gems/2.0.0" ]]; then
# running "Fixing Ruby Gems Directory Permissions"
# sudo chown -R $(whoami) /Library/Ruby/Gems/2.0.0
Expand Down