Skip to content

Instantly share code, notes, and snippets.

@petrpacas
Last active June 26, 2019 09:44
Show Gist options
  • Save petrpacas/216e5c1b4c2298ed3a9783a7ed4a0f11 to your computer and use it in GitHub Desktop.
Save petrpacas/216e5c1b4c2298ed3a9783a7ed4a0f11 to your computer and use it in GitHub Desktop.
My MacOs Setup
### Part 1/2 ###
xcode-select --install
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew tap beeftornado/rmtree
brew tap caskroom/cask
brew install bash
echo '/usr/local/bin/bash' | sudo tee -a /etc/shells
chsh -s /usr/local/bin/bash
brew install bash-completion
brew install rbenv
rbenv init
brew install nvm
mkdir ~/.nvm
echo "PS1='\[\e[1;33m\]\u \[\e[1;37m\](\t) \[\e[1;33m\]\w\[\e[1;32m\] >\n> \[\e[1;31m\]\$\[\e[m\] '
alias showFiles='defaults write com.apple.Finder AppleShowAllFiles true && killall Finder'
alias hideFiles='defaults write com.apple.Finder AppleShowAllFiles false && killall Finder'
alias resetLaunchpad='defaults write com.apple.dock ResetLaunchPad -bool true; killall Dock'
alias bro='brew update && brew outdated'
alias npo='npm outdated -g'
alias outdated='bro && npo'
alias be='bundle exec'
" >> ~/.bashrc
echo 'export PATH="/usr/local/sbin:$PATH"
eval "$(rbenv init -)"
export NVM_DIR="$HOME/.nvm" && . "/usr/local/opt/nvm/nvm.sh"
[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion' >> ~/.bashrc
echo '[ -f ~/.bashrc ] && . ~/.bashrc' >> ~/.bash_profile
exit
### Part 2/2 ###
rbenv install $(rbenv install -l | grep -v - | tail -1)
rbenv global $(rbenv install -l | grep -v - | tail -1)
gem install bundler
nvm install node
npm i -g npm
brew install git
git config --global user.name "Petr Pacas"
git config --global user.email petr@pacas.cz
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.di diff
git config --global alias.st status
git config --global alias.lo log
exit
###### Optional stuff ######
### NTFS driver (recovery mode = hold CMD+R on startup) ###
brew cask install osxfuse
brew install ntfs-3g
# in-recovery #
csrutil disable
# restart #
sudo mv /sbin/mount_ntfs /sbin/mount_ntfs.original
sudo ln -s /usr/local/sbin/mount_ntfs /sbin/mount_ntfs
# in-recovery #
csrutil enable
# restart #
### Disabling Gatekeeper ###
sudo spctl --master-disable
### Useful apps ###
brew cask install adobe-photoshop-cc
brew cask install appcleaner
brew cask install apple-juice
brew cask install avocode
brew cask install cool-retro-term
brew cask install docker
brew cask install dropbox
brew cask install duet
brew cask install filezilla
brew cask install flux
brew cask install folx
brew cask install google-chrome
brew cask install jing
brew cask install omnidisksweeper
brew cask install postman
brew cask install serviio
brew cask install skype
brew cask install slack
brew cask install sublime-text
brew cask install toggldesktop
brew cask install visual-studio-code
brew cask install vlc
brew cask install whatsapp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment