--- tags: 環境 --- # 【前端】開發環境設置 #### 軟體安裝 - app store 安裝 xcode - 安裝 homebrew mac套件管理 - 安裝 iterm2 - 安裝zsh 美化zsh - 安裝nvm - 安裝yarm - 安裝vue-cli - git lab 設定ssh #### tags: 環境建置 - 安裝cask ``` brew tap homebrew/cask ``` - 安裝zsh 美化zsh [安裝-易懂版](https://medium.com/statementdog-engineering/prettify-your-zsh-command-line-prompt-3ca2acc967f) [完整設定說明](https://medium.com/@h86991868/%E7%9C%8B%E8%86%A9%E4%BA%86%E4%B8%80%E6%88%90%E4%B8%8D%E8%AE%8A%E7%9A%84%E5%B0%8F%E9%BB%91%E7%AA%97-%E6%94%B9%E7%94%A8iterm2-oh-my-zsh%E5%90%A7-cc2b0683acb) [安裝流程-簡潔版](https://andy6804tw.github.io/2018/01/01/iterm2-zsh-intro/) ### 刪除 oh my zsh 1. delete the .oh-my-zsh using rm -rf .oh-my-zsh and reinstall ``` rm -rf .oh-my-zsh ``` ### 安裝 oh-my-zsh ``` sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" ``` ### 安裝設定powerlevel9k https://andy6804tw.github.io/2018/01/01/iterm2-zsh-intro/#1-%E5%AE%98%E7%B6%B2%E4%B8%8B%E8%BC%89%E5%AE%89%E8%A3%9D ``` git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k ``` ``` # 使用powerlevel9k主題亦可選擇使用agnoster或預設robbyrussell ZSH_THEME="powerlevel9k/powerlevel9k" # 隱藏用戶名稱(user@hostname) DEFAULT_USER=`id -un` # 含有icon的字型 POWERLEVEL9K_MODE='nerdfont-complete' # command line 左邊想顯示的內容(資料夾路徑、資料夾讀寫狀態、版本控制資訊) POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir dir_writable vcs) # <= left prompt 設了 "dir" # command line 右邊想顯示的內容(狀態、時間) POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status time) ``` ### scheme - 下載 iTerm2 Color Schemes[github](https://github.com/mbadolato/iTerm2-Color-Schemes) ### 修改字型 [參考說明-字型](https://andy6804tw.github.io/2018/01/01/iterm2-zsh-intro/) ``` brew tap homebrew/cask-fonts brew install --cask font-hack-nerd-font ``` - 安裝後就到 Preferences > Profiles > Text > Change Font 來套用你剛下載的字型囉 ### 套用主題 ``` vim ~/.zshrc ``` 設定完需執行此行 ``` // 立即套用 exec $SHELL ``` ## VS Code terminal 設定 ``` # 將 os系統的 bash更換為zsh "terminal.integrated.shell.osx": "/bin/zsh", "terminal.integrated.fontFamily": "Hack Nerd Font Mono", "terminal.integrated.fontSize": 13 ``` ### 鍵盤 Shortcut ``` Send Hex Code Deleting a line: 0x15. Moving to the beginning of the line: 0x01. Moving to the end of the line: 0x05. ```  ### vim 指令 ``` exc 退出輸入模式,切換到命令模式 :q 不保存,直接退出 :q! 不保存,並強制退出 :e! 放棄所有修改,從上次保存文件開始再編輯 :wq 儲存離開 ``` # [環境] 每次都忘記 gitlab ssh設定 https://sinyilin.github.io/git/20191024/1014042378/
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up