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
- Kotlin——初級篇(一):開發環境搭建Kotlin開發環境
- 本機web開發環境的搭建--nginx篇Web開發環境Nginx
- 1 – 搭建開發環境開發環境
- rollup 開發環境搭建開發環境
- 搭建go開發環境Go開發環境
- Androdi開發環境搭建開發環境
- Java開發環境搭建Java開發環境
- 前端開發環境搭建前端開發環境
- Theia 開發環境搭建開發環境
- QEMU 開發環境搭建開發環境
- Cordova 開發環境搭建開發環境
- 搭建VUE開發環境Vue開發環境
- 安卓開發環境搭建安卓開發環境
- 搭建Layui開發環境UI開發環境
- 搭建scala開發環境開發環境
- EBS開發環境搭建開發環境
- andriod開發環境搭建,開發環境
- Erlang開發環境搭建開發環境
- Kafka開發環境搭建Kafka開發環境
- Qt開發環境搭建QT開發環境
- GeoServer開發環境搭建Server開發環境
- phpwamp開發環境搭建詳解,phpwamp綠色整合環境開發環境一鍵搭建PHP開發環境
- Flutter開發入門之開發環境搭建(VSCode搭建Flutter開發環境)Flutter開發環境VSCode
- ubuntu環境下搭建以太坊開發環境Ubuntu開發環境
- Mac 搭建 PHP 開發環境MacPHP開發環境
- Mac搭建Flutter開發環境MacFlutter開發環境
- 搭建 Laravel + vuetify 開發環境LaravelVue開發環境
- Linux搭建開發環境Linux開發環境
- Android開發環境搭建Android開發環境
- 搭建Hadoop開發環境Hadoop開發環境
- Spark開發-spark環境搭建Spark
- GOLang開發環境搭建(Windows)Golang開發環境Windows
- 搭建vue的開發環境Vue開發環境
- python開發環境搭建Python開發環境
- 搭建Android開發環境Android開發環境
- 如何搭建javaweb 開發環境JavaWeb開發環境
- WinCE開發環境的搭建開發環境