Last active
December 17, 2018 15:44
-
-
Save helderco/8038632 to your computer and use it in GitHub Desktop.
Packages installation in a fresh installation of MacOS X.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Aliases | |
alias ls='ls -hG' | |
alias ll='ls -l' | |
alias la='ls -A' | |
alias lla='ls -lA' | |
alias le='ls -lAeO@' | |
alias cleardns="dscacheutil -flushcache" | |
alias crontab="VIM_CRONTAB=true crontab" | |
alias gl="git log --graph --pretty='format:%C(yellow)%h%Cblue%d%Creset %s %C(white)%an, %ar%Creset'" | |
alias myip="curl -s checkip.dyndns.org | grep -Eo '[0-9\.]+'" | |
alias myrsync="rsync -e 'ssh ' -avvzhP --exclude=\".git\" --exclude=\".gitignore\" --exclude=\".DS_Store\" --stats --progress" | |
alias myrsync-all="rsync -e 'ssh ' -avvzhP --exclude=\".DS_Store\" --stats --progress" | |
export PATH="$HOME/.bin:$PATH" | |
# Functions | |
function cdl { cd "$1" && ll; } | |
function mkcdir { mkdir "$1" && cd "$1"; } | |
function rmgit { find "$1" -name .git -exec rm -rvf {} \;; } | |
function rmdsstore { find "$1" -name .DS_Store -exec rm -rvf {} \;; } | |
# UTF-8 terminal support | |
export LC_CTYPE=en_US.UTF-8 | |
export LC_ALL=en_US.UTF-8 | |
# Python | |
export VIRTUALENVWRAPPER_VIRTUALENV_ARGS='--no-site-packages' | |
export WORKON_HOME=$HOME/.virtualenvs | |
export PROJECT_HOME=$HOME/Dropbox/Development/Python | |
export PIP_VIRTUALENV_BASE=$WORKON_HOME | |
export PIP_RESPECT_VIRTUALENV=true | |
export MACOSX_DEPLOYMENT_TARGET=10.9 | |
export VIRTUALENVWRAPPER_SCRIPT=/usr/local/bin/virtualenvwrapper.sh | |
source /usr/local/bin/virtualenvwrapper_lazy.sh | |
# Vagrant | |
export VAGRANT_VMWARE_CLONE_DIRECTORY="$HOME/Virtual Machines/VMware" | |
# HomeBrew | |
export HOMEBREW_CASK_OPTS="--appdir=/Applications --caskroom=/opt/caskroom" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This script automates the instalation of some packages in a new MacOS X operating system. | |
# | |
# Suggestion: Don't run all of this from the command line since some steps require manual checks. | |
# There's a [STOP] comment where you should do something like that. | |
# Try copying the commands from this file, in groups, into the Terminal. | |
# Install XCode command line tools | |
xcode-select --install | |
# [STOP] | |
# At this point you should open XCode to accept the license. | |
# HomeBrew | |
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)" | |
brew doctor | |
# [STOP] | |
# check the output of `brew doctor`. It should be ready to brew. | |
# If not, something went as unexpected. | |
# Get short descriptions for Homebrew formulae or search formulae by description: https://github.com/telemachus/brew-desc | |
brew tap telemachus/homebrew-desc && brew install brew-desc | |
# Install .app and other "Drag to install" packages from Homebrew: https://github.com/phinze/homebrew-cask | |
brew tap phinze/homebrew-cask && brew install brew-cask | |
# We need XQuartz for some packages | |
brew cask install xquartz | |
# Let's add support for writing to NFS volumes | |
brew install fuse4x | |
sudo /bin/cp -rfX `brew --prefix`/Library/LinkedKegs/fuse4x-kext/Library/Extensions/fuse4x.kext /Library/Extensions | |
sudo chmod +s /Library/Extensions/fuse4x.kext/Support/load_fuse4x | |
brew install ntfs-3g | |
sudo mv /sbin/mount_ntfs /sbin/mount_ntfs.orig | |
sudo ln -s `brew --prefix`/Library/LinkedKegs/ntfs-3g/sbin/mount_ntfs /sbin/mount_ntfs | |
# Install some packages | |
brew install tree git pv tig wget python python3 ruby | |
pip install —-upgrade setuptools | |
pip install —-upgrade pip | |
pip3 install —-upgrade setuptools | |
pip3 install —-upgrade pip | |
pip install virtualenvwrapper | |
# Applications | |
brew cask install the-unarchiver | |
brew cask install unrarx | |
brew cask install flash | |
brew cask install java | |
brew cask install dropbox | |
brew cask install google-chrome | |
brew cask install firefox | |
brew cask install sublime-text | |
brew cask install toggldesktop | |
brew cask install tower | |
brew cask install kaleidoscope | |
brew cask install sequel-pro | |
brew cask install colloquy | |
brew cask install skype | |
brew cask install teamviewer | |
brew cask install spotify | |
brew cask install onyx | |
# Vagrant | |
brew cask install vagrant | |
brew cask install virtualbox | |
# you need the license for vmware with vagrant. | |
# place it where you're running the command, or change the command to reference the correct path below. | |
brew cask install vmware-fusion | |
vagrant plugin install vagrant-vmware-fusion | |
vagrant plugin license vagrant-vmware-fusion license.lic | |
# Some useful plugins | |
vagrant plugin install vagrant-hostsupdater | |
vagrant plugin install vagrant-vbguest | |
vagrant plugin install vagrant-cachier | |
# Enable text selection from quick look | |
defaults write com.apple.finder QLEnableTextSelection -bool true | |
killall Finder | |
# Disable the startup chime | |
sudo nvram SystemAudioVolume=%80 | |
# Stop Quicktime and Preview from Auto-Restoring What You Left Open | |
defaults write com.apple.Preview NSQuitAlwaysKeepsWindows -bool false | |
defaults write com.apple.QuickTimePlayerX NSQuitAlwaysKeepsWindows -bool false | |
# Stop the Help Viewer from Floating Over Other Windows | |
defaults write com.apple.helpviewer DevMode -bool true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment