Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moox/setup
My setup... dotfiles, aliases, functions, preferences, apps. Everything.
https://github.com/moox/setup
dotfiles preferences shell
Last synced: 18 days ago
JSON representation
My setup... dotfiles, aliases, functions, preferences, apps. Everything.
- Host: GitHub
- URL: https://github.com/moox/setup
- Owner: MoOx
- License: mit
- Created: 2013-10-30T13:40:46.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2020-06-30T13:34:39.000Z (over 4 years ago)
- Last Synced: 2024-12-10T10:50:12.218Z (about 1 month ago)
- Topics: dotfiles, preferences, shell
- Language: Shell
- Homepage:
- Size: 4.54 MB
- Stars: 110
- Watchers: 12
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# MoOx `setup`
> Dotfiles, aliases, functions, preferences, apps. Everything.
![kaboom](https://raw.githubusercontent.com/MoOx/setup/master/.kaboom.gif)
## From time to time
```console
zprezto-updategit -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
```console
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/Usersource $SETUP_PATH/.zshrc
macos-hidden-show
chflags -h nohidden $HOME/Librarydotfiles "$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
```