Giter Site home page Giter Site logo

setup's Introduction

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

$SETUP_PATH/scripts/vscode-backup.sh

First run

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

export SETUPSH_GIT_NAME=MoOx
export SETUPSH_GIT_EMAIL=
export SETUPSH_PHONE=
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 or +33$SETUPSH_PHONE for a reward.\nVous avez trouver cet ordinateur? Merci de contacter $SETUPSH_GIT_NAME à $SETUPSH_GIT_EMAIL ou au 0$SETUPSH_PHONE pour une récompense."

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

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

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

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

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

mv $HOME/Library/Application\ Support/Code/User SETUP_PATH/dotfiles/.vscode-Library___Application\ Support___Code___User || mkdir -p $HOME/Library/Application\ Support/Code
ln -s SETUP_PATH/dotfiles/.vscode-Library___Application\ Support___Code___User $HOME/Library/Application\ Support/Code/User

source $SETUP_PATH/.zshrc

macos-hidden-show
chflags -h nohidden $HOME/Library

dotfiles "$HOME/Library/Mobile Documents/com~apple~CloudDocs/.home"
# lnfs-subfolders $DIR_SYNC/Library $HOME/Library
# lnfs-subfolders "$DIR_SYNC/Library_Application Support" "$HOME/Library/Application Support"

brew install mas

mas signin --dialog $SETUPSH_GIT_EMAIL

brew bundle

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.