mirror of
https://github.com/danbee/mac-setup
synced 2025-03-04 08:39:10 +00:00
Compare commits
2 Commits
52ed8fe591
...
03e9e435dc
| Author | SHA1 | Date | |
|---|---|---|---|
| 03e9e435dc | |||
| 7bee40d2de |
6
Brewfile
6
Brewfile
@ -1,6 +1,7 @@
|
||||
tap "thoughtbot/formulae"
|
||||
tap "heroku/brew"
|
||||
brew "asdf"
|
||||
brew "chunkwm"
|
||||
brew "direnv"
|
||||
brew "git"
|
||||
brew "heroku"
|
||||
@ -11,6 +12,7 @@ brew "pv"
|
||||
brew "ripgrep"
|
||||
brew "rcm"
|
||||
brew "rsync"
|
||||
brew "skhd"
|
||||
brew "tig"
|
||||
brew "tmux"
|
||||
brew "vim"
|
||||
@ -31,7 +33,7 @@ cask "macvim"
|
||||
cask "phantomjs"
|
||||
cask "textmate"
|
||||
|
||||
cask "font-vollkorn"
|
||||
cask "font-source-code-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
27
Brewfile.extra
Normal 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
16
extra.sh
Executable 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
14
lib/chunkwm.sh
Executable 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
|
||||
@ -1 +0,0 @@
|
||||
#!/bin/sh
|
||||
8
setup.sh
8
setup.sh
@ -22,6 +22,10 @@ if [ ! -f "$HOME/.ssh/id_ed25519.pub" ]; then
|
||||
read -r -p "Press any key to continue... " -n 1
|
||||
fi
|
||||
|
||||
if ! ssh-add -L -q > /dev/null ; then
|
||||
ssh-add
|
||||
fi
|
||||
|
||||
# Install Homebrew
|
||||
step "Installing Homebrew"
|
||||
if ! type brew > /dev/null; then
|
||||
@ -44,6 +48,10 @@ fi
|
||||
step "Installing Homebrew bundle"
|
||||
brew bundle --file="$MAC_SETUP_DIR/Brewfile"
|
||||
|
||||
# Setup `chunkwm`
|
||||
step "Setting up ChunkWM"
|
||||
"$MAC_SETUP_DIR/lib/chunkwm.sh"
|
||||
|
||||
# Install Mac App Store apps
|
||||
step "Installing App Store apps"
|
||||
"$MAC_SETUP_DIR/lib/mas.sh"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user