My setup... dotfiles, aliases, functions, preferences, apps. Everything.
Shell JavaScript AppleScript Ruby CSS CoffeeScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

MoOx setup

Dotfiles, aliases, functions, preferences, apps. Everything.

kaboom

From time to time

zprezto-update

git -C $SETUP_PATH pull origin master

source $SETUP_PATH/dotfiles/.zshrc

sourceFiles $SETUP_PATH/preferences/*.prefs

brew upgrade

brew bundle check

First run

Open App Store, get your apps you download from this place (hello Xcode), then

export SETUPSH_GIT_EMAIL=***************************
export SETUPSH_GIT_NAME=MoOx
export SETUP_PATH=$HOME/setup

# Ask for the administrator password upfront
sudo -v

# security
defaults write com.apple.screensaver askForPassword -int 1
defaults write com.apple.screensaver askForPasswordDelay -int 0
sudo defaults write /Library/Preferences/com.apple.alf globalstate -int 1
sudo launchctl load /System/Library/LaunchDaemons/com.apple.alf.agent.plist 2>/dev/null
sudo defaults write /Library/Preferences/com.apple.loginwindow LoginwindowText  "Found this computer? Please contact $SETUPSH_GIT_NAME at $SETUPSH_GIT_EMAIL for a reward.\nVous avez trouver cet ordinateur? Merci de contacter $SETUPSH_GIT_NAME à $SETUPSH_GIT_EMAIL pour une récompense."

# define zsh as default shell
chsh -s /bin/zsh $USER
# use zsh now
zsh

# Command Line Tools (CLT) for Xcode
xcode-select --install
sudo xcodebuild -license

# install pretzo
# https://github.com/sorin-ionescu/prezto/#installation
git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"

# Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

# install/setup sync strategy before registring dotfiles & stuff that might need synced files (eg: for git ssh config etc)

brew cask install "syncthing-bar"

# then configure syncthing and way for the sync

source ./setup/scripts/custom-folders.sh

# get setup and dotfiles now that we have launched sync

git clone https://github.com/$SETUPSH_GIT_NAME/setup.git $SETUP_PATH

for file in $SETUP_PATH/functions/*; do; source $file; done

sourceFiles $SETUP_PATH/preferences/*.prefs

dotfiles

source ~/.zshrc

macos-hidden-show

brew install mas

mas signin $SETUPSH_GIT_EMAIL

brew bundle

# https://github.com/jasongin/nvs
export NVS_HOME="$HOME/.nvs"
git clone https://github.com/jasongin/nvs "$NVS_HOME"
. "$NVS_HOME/nvs.sh" install
nvs add node/10
nvs link 10

# safer than rm
yarn global add trash-cli
# lock cli command
yarn global add lock-cli

Also good to do