<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                [TOC] # 安裝 ~~~ # 安裝zsh yum install zsh -y # 安裝oh my zsh wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh 或者 sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)" ~~~ 替換bash為zsh(注意路徑,不知道的話可以which下): ~~~ echo "/usr/bin/zsh" | tee -a /etc/shells chsh -s /usr/bin/zsh ~~~ 查看zsh版本 ~~~ zsh --version ~~~ 編譯安裝zsh ~~~ wget http://sourceforge.net/projects/zsh/files/zsh/5.0.7/zsh-5.0.7.tar.bz2/download && tar xvjf zsh-5.0.7.tar.bz2 && cd zsh-5.0.7 ~~~ 編譯安裝 ~~~ ./configure && make && sudo make install ~~~ 安裝了zsh 使用vim出現了如下錯誤 ~~~ arguments:450: _vim_files: function definition file not found _arguments:450: _vim_files: function definition file not found _arguments:450: _vim_files: function definition file not found ~~~ 解決辦法,執行下面命令 ~~~ rm ~/.zcompdump* ~~~ 關閉所有終端,重新打開繼續使用vim就不會出現這個問題了 # 編輯器 mac打開vscode,sublime,atom atom要安裝他自己的命令行工具 ~~~ alias chrome="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome" #alias atom="/Applications/Atom.app/Contents/MacOS/Atom" alias vscode="/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code" ~~~ 升級了 oh-my-zsh 也一樣,打開終端后,加載到 oh-my-zsh 很慢。 但是使用 iTerm2 打開就非常快,幾乎感覺不到。 ~~~ sudo rm -rf /private/var/log/asl/*.asl ~~~ # oh my zsh 升級oh my zsh ~~~ upgrade_oh_my_zsh ~~~ zsh-autosuggestions可以歷史命令提示 可以維護下`~/.zsh_history`這個 ctrl+R和command+R也行 # 插件 ~~~ plugins=(git web-search autojump zsh-syntax-highlighting zsh-autosuggestions zsh-completions colored-man-pages extract zsh_reload) ~~~ 插件好像在這個下面`~/.oh-my-zsh/plugins/`,這下面有的話直接加入是沒問題的,沒有的話就要這樣 **對應OSX用戶** ~~~ brew install zsh-syntax-highlighting ~~~ 會自動下載這個插件,并將 ~~~ source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ~~~ 這一句加在你的~/.zshrc中。 如果遇到highlighters directory not found這個問題,就 ~~~ export ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR=/usr/local/share/zsh-syntax-highlighting/highlighters ~~~ `brew info zsh-syntax-highlighting`可以看到 **對于Oh-my-zsh用戶** ~~~ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh}/plugins/zsh-syntax-highlighting ~~~ 位置有可能是`~/.oh-my-zsh/custom/plugins`也有可能是在`~/.oh-my-zsh/plugins`看配置文件~/.zshrc中的注釋吧 同理 ~~~ git clone git://github.com/zsh-users/zsh-autosuggestions ~~~ 這個也是 然后激活這個插件,通過在 ~~~ ~/.zshrc ~~~ 中加入插件的名字 ~~~ plugins=( [plugins...] zsh-syntax-highlighting) ~~~ 最后當然是source一下,讓改變生效 ~~~ source ~/.zshrc ~~~ # 主題 ~~~ #THEME #ZSH_THEME="robbyrussell" #ZSH_THEME="cloud" ZSH_THEME="dpoggi" ~~~ # 禁止oh-my-zsh自動更新 在~/.zshrc中添加 ~~~ DISABLE_UPDATE_PROMPT=true DISABLE_AUTO_UPDATE=true ~~~ # irb 也可搜歷史 ~/.inputrc ~~~ set show-all-if-ambiguous on set completion-ignore-case on # utf-8 I/O set input-meta on set output-meta on set convert-meta off # home 和 end (mac 是 fn+左 / fn+右,另外我把iterm的cmd+左/右也綁成了home/end) "\e[1~": beginning-of-line "\e[4~": end-of-line # page up 和 page down 搜索歷史 (mac 是 fn+上 / fn+下) "\e[5~": history-search-backward "\e[6~": history-search-forward # 綁定快速輸入一些代碼的快捷鍵 "\C-l": "λ" "\C-r": "require 'active_support/all'" ~~~ # autojump ~~~ yum install autojump -y ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看