iterm 配置

我只是個搬運工,不想下次安裝iterm時再去找網上找連接。權當給本身備份一下git

操做步驟

  1. 基本配置:透明,背景圖片
  2. oh-my-zsh下載及主題配置
  3. 自動提示與命令補全
  4. 語法高亮效果
  5. autojump

三、四、5沒有現成的文檔,就本身寫一下吧github

自動提示與命令補全

一、克隆倉庫到本地 ~/.oh-my-zsh/custom/plugins 路徑下vim

git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions

二、打開.zshrc文件插件

vim ~/.zshrc

三、編輯.zshrc文件code

plugins=(
    git
)
// 修改成
plugins=(
    zsh-autosuggestions
    git
)

四、加載.zshrc配置圖片

source ~/.zshrc

從新打開iterm窗口,能夠看到效果文檔

語法高亮效果

一、安裝zsh-syntax-highlighting 插件get

brew install zsh-syntax-highlighting

二、打開.zshrc文件it

vim ~/.zshrc

三、編輯.zshrc文件io

plugins=(
    zsh-autosuggestions
    git
)
// 修改成
plugins=(
    zsh-autosuggestions
    zsh-syntax-highlighting
    git
)
//添加
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

四、加載.zshrc配置

source ~/.zshrc

從新打開iterm窗口,能夠看到效果

autojump

一、安裝autojump 插件

brew install autojump

二、打開.zshrc文件

vim ~/.zshrc

三、用vim編輯.zshrc文件

plugins=(
    zsh-autosuggestions
    zsh-syntax-highlighting
    git
)
// 修改成
plugins=(
    zsh-autosuggestions
    zsh-syntax-highlighting
    autojump
    git
)
//添加
alias j="autojump"
[[ -s `brew --prefix`/etc/autojump.sh ]] && . `brew --prefix`/etc/autojump.sh

四、加載.zshrc配置

source ~/.zshrc

從新打開iterm窗口,能夠看到效果

autojump配置在我本地不生效,報錯信息 command not found: autojump,重啓電腦,重啓iterm都沒有用。也在網上找了解決方法,但都沒有用。因時間問題暫時擱置後續解決了再來補充 有知道的小夥伴也麻煩告知一下
相關文章
相關標籤/搜索