ITerm2 · Wiki
1.1. 通用終端命令
ctrl + a 將光標(biāo)移動到命令行開頭 ctrl + e 將光標(biāo)移動到命令行結(jié)尾處 ctrl + u 刪除光標(biāo)前面所有字符 ctrl + k 刪除光標(biāo)后面所有字符
1.2. 常用設(shè)置
iTerm2設(shè)置為默認終端:(菜單欄)iTerm -> Make iTerm2 Default Term 在 Keys -> Hotkey 中設(shè)置 optin + space 快速顯示和隱藏iTerm 自定義快捷鍵,在iTerm->Preferences->Keys里面設(shè)置2. 配色方案
Solarized -- githubiTerm2-Color-Schemes
下載完成后依次選擇:iTerm->Preferences->Profiles->Colors
然后選擇下面的Load Presets->Import,選擇下載好的schemes文件夾里面的.itermcolors后綴的文件導(dǎo)入主題即可選擇使用。
常用的快捷鍵:
Function Shortcut 新建term窗口 ? + n 新建標(biāo)簽頁 ? + t 關(guān)閉標(biāo)簽頁或者窗口 ? + w 分屏顯示 ? + d / ? + shift + d tab標(biāo)簽頁之間切換 ? + 數(shù)字 / ? + <- / -> 自動補全 ? + ; Move forward a word Option + f Move backward a word Option + b Clear the screen ? + kTabs and Windows
Function Shortcut Previous Tab ?+ Left Arrow Next Tab ?+ Right Arrow Go to Tab ? + Number Go to Window ? + Option + Number Go to Split Pane by Direction ? + Option + Arrow Go to Split Pane by Order of Use ? + ] , ? + [ Split Window Horizontally (same profile) ? + D Split Window Vertically (same profile) ? + d Split Window Horizontally (new profile) Option + ? + H Split Window Vertically (new profile) Option + ? + V 關(guān)閉當(dāng)前標(biāo)簽頁 ? + 'w' 新的標(biāo)簽頁 ? + 't' Set Mark ? + M Jump to Mark ? + J 進入與返回全屏模式 ? + enter 清屏 ? + rBasic Moves
Function Shortcut Move back one character Ctrl + b Move forward one character Ctrl + f Delete current character Ctrl + d Delete previous character Backspace Undo Ctrl + -通用快捷鍵
Function Shortcut 清空當(dāng)前行 Ctrl + u 移動到行首 Ctrl + a 移動到行尾 Ctrl + e 向前移動 Ctrl + f 向后移動 Ctrl + b 上一條命令 Ctrl + p 下一條命令 Ctrl + n 搜索歷史命令 Ctrl + r 刪除光標(biāo)之前的字符 Ctrl + y 召回最近用命令刪除的文字 Ctrl + h 刪除光標(biāo)所指的字符 Ctrl + d 刪除光標(biāo)之前的單詞 Ctrl + w 刪除從光標(biāo)到行尾的內(nèi)容 Ctrl + k 交換光標(biāo)和之前的字符 Ctrl + tCut and Paste
Function Shortcut Cut from cursor to the end of line Ctrl + k Cut from cursor to the end of word Option + d Cut from cursor to the start of word Option + Backspace Cut from cursor to previous whitespace Ctrl + w Paste the last cut text Ctrl + w Loop through and paste previously cut text Option + y Loop through and paste the last argument of previous commands Option + .Search the Command History
Function Shortcut Search as you type Ctrl + r and type the search term; Repeat Ctrl + r to loop through result Search the last remembered search term Ctrl + r twice End the search at current history entry Ctrl + y Cancel the search and restore original line Ctrl + g 自動列出剪切板的歷史記錄 ? + shift + h 補全 ? + ';'3. zsh
install: brew install zsh
安裝完成后,將zsh設(shè)置成系統(tǒng)默認shell,以代替bash。 用編輯器打開/etc/shells,在末尾添加/usr/local/bin/zsh,保存關(guān)閉。 在終端中執(zhí)行以下命令:
chsh -s /usr/local/bin/zsh
oh-my-zsh
3.1. config
# .zsrc ZSH_THEME = agnoster
Search the Command History
1. iTerm21.1. 通用終端命令1.2. 常用設(shè)置2. 配色方案3. zsh3.1. configresults matching ""
No results matching ""
相關(guān)知識
能量補給
美國懷孕生產(chǎn),爸媽們必備的產(chǎn)檢、生產(chǎn)常用詞匯中英文對照表~
有關(guān)高強度間歇訓(xùn)練法HIIT或高強度訓(xùn)練法HIT
ETNT
均衡飲食 (Diet)
不可思議!女性獲得高..潮的方式竟然這么多……
【公告】《幻塔》公測福利領(lǐng)取&充值返利規(guī)則說明
法國爆款減肥藥致死2千人!這個品牌在中國卻隨處可見……
美國營養(yǎng)師推薦的孕婦最佳食物&應(yīng)避免的食物清單
小口啜飲,別猛灌水:怎么掌握喝水速度?
網(wǎng)址: ITerm2 · Wiki http://www.u1s5d6.cn/newsview905313.html
推薦資訊
- 1發(fā)朋友圈對老公徹底失望的心情 12775
- 2BMI體重指數(shù)計算公式是什么 11235
- 3補腎吃什么 補腎最佳食物推薦 11199
- 4性生活姿勢有哪些 盤點夫妻性 10428
- 5BMI正常值范圍一般是多少? 10137
- 6在線基礎(chǔ)代謝率(BMR)計算 9652
- 7一邊做飯一邊躁狂怎么辦 9138
- 8從出汗看健康 出汗透露你的健 9063
- 9早上怎么喝水最健康? 8613
- 10五大原因危害女性健康 如何保 7828