Mac下命令行自动提示
2016-01-27 11:35
381 查看
命令行提示工具,便于命令的正确书写,效果如图:
tarruda/zsh-autosuggestions 下参考Manually 项安装。
Manually
1、Clone this repository to ~/.zsh/zsh-autosuggestions (or anywhere else):
2、Clone zsh-syntax-highlighting repository to ~/.zsh/zsh-syntax-highlighting (or anywhere else):
3、Load and enable autosuggestions; copy the following snippet and put it to your .zshrc file:
4、Reopen your terminal.
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.
相关文章推荐
- Codeforces Round #340 (Div. 2)
- 最快让你上手ReactiveCocoa之基础篇
- iMindMap中幻灯片设置该怎样修改
- HashMap实现简单的缓存Cache
- 布局优化的几种方法
- MySql自动插入当前时间
- Codeforces Round #340 (Div. 2)
- php7编译安装
- 新浪微盘2
- is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'
- poj 3268 Silver Cow Party(最短路径)
- Android基础之Animation——补间动画学习
- iOS开发-UI控件:UIImagePickerController 视频录制操作,视频大小,时间长度
- linux中查找文件并合并文件
- 源码来袭!!!基于jquery的ajax分页插件(demo+源码)
- setBackground报错 不兼容4.1以下版本
- linux终端快捷键
- 编程日常160127
- Hive-3.hive 的 hql 语句
- 享元模式