sh 在新的macOS上设置/安装的事情

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 在新的macOS上设置/安装的事情相关的知识,希望对你有一定的参考价值。

#!/bin/bash

# change default shell to zsh (asks for password)
chsh -s /bin/zsh

# install xcode command line tools
xcode-select --install
  
# download my custom .zshrc
curl https://gist.githubusercontent.com/simonhaenisch/382eab0cfa3435dad7e177a49fe198fc/raw/.zshrc > ~/.zshrc

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

# install some command line stuff
brew tap getantibody/homebrew-antibody
brew install antibody grc node ffmpeg youtube-dl python3

# optional brew installs:
#   * nmap
#   * cmake (includes ccmake: switch to build dir and pass path to src as arg)
#   * pkg-config

# install apps from cask (https://caskroom.github.io)
brew tap caskroom/cask
brew cask install appcleaner bettertouchtool caffeine cyberduck deezer dropbox firefox flux google-chrome handbrake hyper imageoptim iterm2 mountain-duck mplayerx owncloud rocket sabnzbd skype sublime-text teamviewer the-unarchiver thumbsup transmit virtualbox visual-studio-code whatsapp
# bettertouchtool settings: 3F click/tap: middle click, 4F click: center window, 5F click: sleep display
# iTerm settings are in Dropbox/Apps/iTerm (color preset is molokai)

# non-cask apps (App Store/Web):
#   * Graphic
#   * Logic Pro X
#   * Newton
#   * Pixelmator
#   * Swift Note
#   * iStudiez Pro
#   * iWork

# install global npm tools
npm install -g yarn tern browser-sync eslint ionic

# no ds_store on network drives (http://hints.macworld.com/article.php?story=2005070300463515)
defaults write com.apple.desktopservices DSDontWriteNetworkStores true

# default to save to local disk, not iCloud
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false

# no auto open for mounted transmit drives (https://panic.com/blog/15-secrets-of-transmit/)
defaults write com.panic.transmit OpenMountedFinderWindow -bool NO
defaults write com.panic.transmitmenu OpenMountedFinderWindow -bool NO

# disable sudden motion sensor (only do this for ssd's)
sudo pmset -a sms 0

# cleanup brew downloads cache
brew cleanup -s
brew cask cleanup

以上是关于sh 在新的macOS上设置/安装的事情的主要内容,如果未能解决你的问题,请参考以下文章

sh 在新的OSX机器上安装我想要的东西的脚本

sh 在新的OSX机器上安装我想要的东西的脚本

sh 如何在新的Ubuntu安装上构建比特币(0.13)

sh 在新的Ubuntu 14.04 Amazon EC2实例上安装Sentry(http://getsentry.com)+ Redis的基本安装脚本

sh 这是我在新的ubuntu机器上运行的第一个命令,用于设置一个简单的防火墙,只允许我想要的。

在新的 MacBook Air M1 上安装 Pandas 时遇到问题 [关闭]