123456789101112131415161718192021222324252627282930313233343536373839404142# 安裝必要的環境xcode-select --install# 安裝 brew/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"echo '# Set PATH, MANPATH, etc., for Homebrew.' >> ~/.zprofileecho 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile # 安裝 iterm2brew install iterm2# 安裝 ohmyzsh 插件sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"echo "source ~/.zshrc" >> ~/.zprofile# 安裝 zsh 主題git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k# 安裝 zsh 插件brew install zsh-autosuggestionsecho "source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh" >> ~/.zprofile# 生成 SSH-keyssh-keygen -t ed25519 -C "michael.ma@kkday.com"# 查看less ~/.ssh/id_ed25519.pub # 安裝 PHP 多版本brew tap shivammathur/phpbrew install php@7.1# 安裝 PHP 版本切換器brew install brew-php-switcher # 安裝 NGINX PostgreSQL redis 服務brew install nginx postgresql@15 redis# 所有的項目文件都放在家目錄下分門別類# 軟鏈 NGINX 服務配置文件到 家目錄ln -s $(brew --repo)/etc/nginx/servers ~/