1
0
mirror of https://github.com/danbee/mac-setup synced 2025-03-04 08:39:10 +00:00

Compare commits

...

2 Commits

Author SHA1 Message Date
03e9e435dc
Setup chunkwm 2019-04-16 14:10:52 -04:00
7bee40d2de
Add extra 2019-04-16 13:30:38 -04:00
6 changed files with 69 additions and 3 deletions

View File

@ -1,6 +1,7 @@
tap "thoughtbot/formulae" tap "thoughtbot/formulae"
tap "heroku/brew" tap "heroku/brew"
brew "asdf" brew "asdf"
brew "chunkwm"
brew "direnv" brew "direnv"
brew "git" brew "git"
brew "heroku" brew "heroku"
@ -11,6 +12,7 @@ brew "pv"
brew "ripgrep" brew "ripgrep"
brew "rcm" brew "rcm"
brew "rsync" brew "rsync"
brew "skhd"
brew "tig" brew "tig"
brew "tmux" brew "tmux"
brew "vim" brew "vim"
@ -31,7 +33,7 @@ cask "macvim"
cask "phantomjs" cask "phantomjs"
cask "textmate" cask "textmate"
cask "font-vollkorn"
cask "font-source-code-pro" cask "font-source-code-pro"
cask "font-source-sans-pro" cask "font-source-sans-pro"
cask "font-courier-prime" cask "font-sourcecodepro-nerd-font"
cask "font-sourcecodepro-nerd-font-mono"

27
Brewfile.extra Normal file
View File

@ -0,0 +1,27 @@
brew "mackup"
brew "mercurial"
cask "colorpicker-skalacolor"
cask "dropbox"
cask "fantastical"
cask "fontplop"
cask "istat-menus"
cask "ivolume"
cask "mplayerx"
cask "mpv"
cask "sequel-pro"
cask "skype"
cask "spotify"
cask "superduper"
cask "vmware-fusion"
cask "vlc"
cask "font-courier-prime"
cask "font-courier-prime-code"
cask "font-ibm-plex"
cask "font-inconsolata"
cask "font-merriweather"
cask "font-noto-sans"
cask "font-noto-sans-mono"
cask "font-public-sans"
cask "font-vollkorn"

16
extra.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/sh
MAC_SETUP_DIR="$HOME/mac-setup"
BOLD="\033[1m"
WHITE="\033[0;37m"
YELLOW="\033[1;33m"
GREEN="\033[1;32m"
NC="\033[0m"
step() {
echo "${YELLOW} ${WHITE}${BOLD}$1${NC} ${YELLOW}${NC}"
}
# Install brew bundles
step "Installing Homebrew bundle extra"
brew bundle --file="$MAC_SETUP_DIR/Brewfile.extra"

14
lib/chunkwm.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/sh
# Ask the user to generate a code signing key for `chunkwm`
echo "Please generate a code signing certificate called 'chunkwm-cert' in Keychain Access"
read -r -p "Press any key to continue... " -n 1
# We need to code sign chunkwm and skhd in order for them to be added to the
# accessibility allowed list.
codesign -fs "chunkwm-cert" $(which chunkwm)
codesign -fs "chunkwm-cert" $(which skhd)
# Start chunkwm
brew services start chunkwm
brew services start skhd

View File

@ -1 +0,0 @@
#!/bin/sh

View File

@ -22,6 +22,10 @@ if [ ! -f "$HOME/.ssh/id_ed25519.pub" ]; then
read -r -p "Press any key to continue... " -n 1 read -r -p "Press any key to continue... " -n 1
fi fi
if ! ssh-add -L -q > /dev/null ; then
ssh-add
fi
# Install Homebrew # Install Homebrew
step "Installing Homebrew" step "Installing Homebrew"
if ! type brew > /dev/null; then if ! type brew > /dev/null; then
@ -44,6 +48,10 @@ fi
step "Installing Homebrew bundle" step "Installing Homebrew bundle"
brew bundle --file="$MAC_SETUP_DIR/Brewfile" brew bundle --file="$MAC_SETUP_DIR/Brewfile"
# Setup `chunkwm`
step "Setting up ChunkWM"
"$MAC_SETUP_DIR/lib/chunkwm.sh"
# Install Mac App Store apps # Install Mac App Store apps
step "Installing App Store apps" step "Installing App Store apps"
"$MAC_SETUP_DIR/lib/mas.sh" "$MAC_SETUP_DIR/lib/mas.sh"