您的位置:首页 > 其它

Mac下命令行自动提示

2016-01-27 11:35 381 查看
命令行提示工具,便于命令的正确书写,效果如图:



tarruda/zsh-autosuggestions 下参考Manually 项安装。

Manually

1、Clone this repository to ~/.zsh/zsh-autosuggestions (or anywhere else):

git clone git://github.com/tarruda/zsh-autosuggestions ~/.zsh/zsh-autosuggestions


2、Clone zsh-syntax-highlighting repository to ~/.zsh/zsh-syntax-highlighting (or anywhere else):

git clone git://github.com/zsh-users/zsh-syntax-highlighting ~/.zsh/zsh-syntax-highlighting


3、Load and enable autosuggestions; copy the following snippet and put it to your .zshrc file:

# Load zsh-syntax-highlighting.   source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh


# Load zsh-autosuggestions. source ~/.zsh/zsh-autosuggestions/autosuggestions.zsh


# Enable autosuggestions automatically.


zle-line-init() {


zle autosuggest-start


}


zle -N zle-line-init


4、Reopen your terminal.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: