sh init工作站

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh init工作站相关的知识,希望对你有一定的参考价值。

####################
# User Preferences #
####################
# defaults write com.apple.systempreferences "NSWindow Frame Main Window Frame SystemPreferencesApp 8.0" -string "159 419 668 462 0 0 1920 1177 " # Set display scale to more space
# Show battery percent in menu bar
defaults write com.apple.menuextra.battery ShowPercent -string YES
# Show save menu
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode2 -bool true
# Plain text by default in TextEdit
defaults write com.apple.TextEdit RichText -int 0
# Show print menu
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint2 -bool true
# Quit after printing
defaults write com.apple.print.PrintingPrefs "Quit When Finished" -bool true
# Trackpad: enable tap to click for this user and for the login screen
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true
defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
defaults write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
# Trackpad: map bottom right corner to right-click
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadCornerSecondaryClick -int 2
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadRightClick -bool true
defaults -currentHost write NSGlobalDomain com.apple.trackpad.trackpadCornerClickBehavior -int 1
defaults -currentHost write NSGlobalDomain com.apple.trackpad.enableSecondaryClick -bool true
# Show file extensions
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
# Finder: show status bar
defaults write com.apple.finder ShowStatusBar -bool true
# Finder: show path bar
defaults write com.apple.finder ShowPathbar -bool true
# Hot Corners: bottom left desktop
defaults write com.apple.dock wvous-bl-corner -int 4
defaults write com.apple.dock wvous-bl-modifier -int 0
# Hot Corners: top left mission control
defaults write com.apple.dock wvous-tl-corner -int 2
defaults write com.apple.dock wvous-tl-modifier -int 0
# Hot Corners: bottom right launchpad
defaults write com.apple.dock wvous-br-corner -int 11
defaults write com.apple.dock wvous-br-modifier -int 0
# Hot Corners: top right notifications
defaults write com.apple.dock wvous-tr-corner -int 12
defaults write com.apple.dock wvous-tr-modifier -int 0

########################
# Development Software #
########################

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

# Install NVM
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash

# Install Yarn
brew install yarn --without-node

# Install Docker CE
curl -L -o ~/Downloads/docker.dmg 'https://download.docker.com/mac/stable/Docker.dmg'
hdiutil attach ~/Downloads/docker.dmg
sudo cp -R /Volumes/Docker/Docker.app /Applications/
hdiutil detach /Volumes/Docker/

# Install VSCode
curl -L -o ~/Downloads/vscode.zip 'https://az764295.vo.msecnd.net/stable/1dfc5e557209371715f655691b1235b6b26a06be/VSCode-darwin-stable.zip'
unzip -o ~/Downloads/vscode.zip -d ~/Downloads/
sudo cp -R ~/Downloads/Visual\ Studio\ Code.app /Applications/

# Install Postman
curl -L -o ~/Downloads/postman.zip 'https://app.getpostman.com/app/download/osx64?utm_source=site&utm_medium=apps&utm_campaign=macapp&_ga=2.17659833.1036064346.1532231978-1447960500.1532231978'
unzip -o ~/Downloads/postman.zip -d ~/Downloads/
sudo cp -R ~/Downloads/Postman.app /Applications/

# Install iTerm
curl -L -o ~/Downloads/iterm.zip 'https://iterm2.com/downloads/stable/iTerm2-3_1_7.zip'
unzip -o ~/Downloads/iterm.zip -d ~/Downloads/
sudo cp -R ~/Downloads/iTerm.app /Applications/

##############################
# Communication Applications #
##############################

# Install Slack
#curl -L -o ~/Downloads/slack.dmg 'https://downloads.slack-edge.com/mac_releases/Slack-3.2.0.dmg'
#hdiutil attach ~/Downloads/slack.dmg
#sudo cp -R /Volumes/Slack.app/Slack.app /Applications/
#hdiutil detach /Volumes/Slack.app/

########################
# General Applications #
########################

# Install Google Chrome
#curl -L -o ~/Downloads/gc.dmg 'https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg'
#hdiutil attach ~/Downloads/gc.dmg
#sudo cp -R /Volumes/Google\ Chrome/Google\ Chrome.app /Applications/
#hdiutil detach /Volumes/Google\ Chrome/

# Install Firefox
curl -L -o ~/Downloads/ff.dmg 'https://download-installer.cdn.mozilla.net/pub/firefox/releases/61.0.1/mac/en-US/Firefox%2061.0.1.dmg'
hdiutil attach ~/Downloads/ff.dmg
sudo cp -R /Volumes/Firefox/Firefox.app /Applications/
hdiutil detach /Volumes/Firefox/

###########################
# Application Dock Config #
###########################
# add spaces for organizational groups 
# defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
# killall Dock

以上是关于sh init工作站的主要内容,如果未能解决你的问题,请参考以下文章

sh cfg-init.sh

sh init.sh

sh init.sh

sh npm_init.sh

sh kafka-init.sh

sh node_server_init.sh