2.Mac篇 - iterm2 - 開發環境搭建
參考:
配置
- 工具:
-
tig:
說明:
文字瀏覽器方式檢視git的提交快捷鍵:
tig:顯示提交
q:退出
/ + ...:查詢(與vim一致)
enter:檢視具體提交內容
上下箭頭:移動檢視提交-
參考:
-
ccat
- 說明:
程式碼高亮顯示cat - 改變快捷鍵:
alias cat=ccat # 這樣可以直接使用cat
- 說明:
-
iterm2:
- 開啟配置項
Command + , - 建立一個配置賬戶
Profiles -> + -> Name(General部分) - 配置每次開啟都是當前目錄,而非根目錄
Profiles(自己的賬戶) -> Reuse previous session's directory (Working Directory under Generals) - 主題 - dracula:
- 參考:
- 安裝:
搜尋 - iterm2部分,然後按步驟安裝
- 開啟配置項
-
zsh:
-
參考:
-
安裝:
# curl 安裝方式: sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" # wget 安裝方式: sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
-
錯誤:
- .zshrc:3: command not found: ^M
.oh-my-zsh/oh-my-zsh.sh:42: parse error near `||'
https://github.com/robbyrussell/oh-my-zsh/issues/4870
關鍵程式碼:cd $ZSH git config core.autocrlf input git rm --cached -r . git reset --hard
- .zshrc:3: command not found: ^M
-
主題:
- cloud
.zshrc裡配置
- cloud
-
外掛:
- zsh-autosuggestions:
- 參考:
- 問題:
- 貼上慢(長文)
解決:# 1. 開啟~/.zshrc vim ~/.zshrc # 2. 新增下面這句話 ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=20
- 貼上慢(長文)
-
使用bashmarks.sh(快捷跳轉)
- 在配置檔案~/.zshrc裡最後新增如下命令:
# bashmarks.sh unalias g # 取消g的別名(zsh預設為git) source /Users/mingwang/Opt/bashmarks.sh
-
設定word_separators
- 開啟設定:command + ,
- 在word for selection部分:
/-+\~_.$
-
其他配置:
- iterm2開啟之前開啟的位置
- 主題配置
- 參考:
- 設定:
- 在主題網站下載對應的主題
- Perferences -> Profiles -> Colors(選擇對應的Profile Name)-> Color Presets -> Import
- Perferences -> Profiles -> Colors(選擇對應的Profile Name)-> Color Presets -> 選擇指定的主題
- 說明:
- 推薦主題:
Dracula
- 推薦主題:
- 外掛
- 參考:
- 可用外掛:
- imgcat
- 作用:
在命令列裡檢視圖片 - 安裝:
- 開啟 imgcat - shell指令碼
- 存入位置 /data/scripts/imgcat,將shell拷貝進檔案
- chmod +x /data/scripts/imgcat
- 執行(命令列檢視圖片)
/data/scripts/imgcat img.jpg
- 作用:
- imgcat
相關文章
- Elasticsearch開篇-環境搭建Elasticsearch
- Flutter開發入門之開發環境搭建(VSCode搭建Flutter開發環境)Flutter開發環境VSCode
- 1 – 搭建開發環境開發環境
- Androdi開發環境搭建開發環境
- Cordova 開發環境搭建開發環境
- GeoServer開發環境搭建Server開發環境
- Qt開發環境搭建QT開發環境
- 前端開發環境搭建前端開發環境
- QEMU 開發環境搭建開發環境
- 搭建go開發環境Go開發環境
- JAVA開發環境搭建Java開發環境
- 搭建VUE開發環境Vue開發環境
- lua 開發環境搭建開發環境
- Theia 開發環境搭建開發環境
- rollup 開發環境搭建開發環境
- Linux搭建開發環境Linux開發環境
- 【Android Studio】Android Studio 搭建開發環境(Linux Ubuntu篇)Android開發環境LinuxUbuntu
- ubuntu環境下搭建以太坊開發環境Ubuntu開發環境
- 搭建 Laravel + vuetify 開發環境LaravelVue開發環境
- 搭建vue的開發環境Vue開發環境
- GOLang開發環境搭建(Windows)Golang開發環境Windows
- TS(TypeScript)— 搭建開發環境TypeScript開發環境
- Mac 搭建 PHP 開發環境MacPHP開發環境
- Java開發-搭建hibernate環境Java
- Mac搭建Flutter開發環境MacFlutter開發環境
- React Native 開發環境搭建React Native開發環境
- windows開發genieacs環境搭建Windows
- linux開發環境搭建(ubuntu)Linux開發環境Ubuntu
- MAC環境下PHP開發除錯環境搭建MacPHP除錯
- Weex開發之路(一):開發環境搭建開發環境
- 如何在Windows、MacOS上搭建Flutter開發環境(詳細篇)WindowsMacFlutter開發環境
- Laradock 快速搭建PHP開發環境PHP開發環境
- Python筆記 開發環境搭建Python筆記開發環境
- 3.5 以太坊開發環境搭建開發環境
- 搭建Flutter-iOS開發環境FlutteriOS開發環境
- Go語言開發環境搭建Go開發環境
- 四、Clion搭建FFmpeg開發環境開發環境
- 2. koa開發環境搭建開發環境
- 1. Angular開發環境搭建Angular開發環境