当前位置:网站首页>oh-my-zsh 效率插件
oh-my-zsh 效率插件
2022-07-21 05:06:00 【ruglcc】
命令语法亮度插件zsh-syntax-highlighting
下载
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
配置
vim ~/.zshrc
中加入插件的名字plugins=( [plugins...] zsh-syntax-highlighting)
生效source ~/.zshrc
或是重启终端
历史记录建议插件 zsh-autosuggestions
下载
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
配置
vim ~/.zshrc
在配置中添加插件名字:
plugins=( [plugins...] zsh-autosuggestions)
修改完成之后需要运行:source ~/.zshrc
wd 常用目录切换工具
wd 插件是我比较喜欢的一个,它的作用就是能够快速的切换到常用的目录。我们用命令行时经常会遇到这样一种情况,我们常用的目录就那么几个,而这些目录有时候会再很深的层级中。使用 cd 命令在这些深层级目录中切换就比较耗费时间了。
wd
插件正是为了解决这个问题,比如我们有一个常用的目录 /usr/nginx/www/html,我们首先进入到这个目录中,然后输入
wd add web
这个命令相当于给当前目录做了一个标识,标识名叫做 web ,我们下次如果再想进入这个目录,只需输入:
wd web
这样就可以完成目录切换了,非常方便。
看看效果
小技巧
当出现命令提示时,按->方向键盘,shell将会把提示文本输入补全
边栏推荐
猜你喜欢
随机推荐
[C语言] 0.5倍速讲解世纪大战 有趣的C语言玩法
useMemo和useCallback的区别以及使用场景
MySQL之函数
如何免费在本地播放flv格式的视频
Detailed derivation of Differential Flatness of UAV
Small game items - mine sweeping
Deep analysis recursion
[C language] 0.5 times the speed to explain the interesting C language playing methods of the century war
蛇形数字宫格的实现. 编写一个cube函数,入参为num, 通过js实现 要求如下:当num=3时,输出表格效果为:[[1,2,3][6,5,4][7,8,9]]
Upload pictures and avatars
自定义MVC增删改查
moment自定义时间区间
[C语言] 平淡的日子里泛起光 初阶最后的战役
Read the manuscript in pieces
In depth analysis - structure
Why use the fast and slow pointer to find the link of the linked list, and the fast pointer and the slow pointer must meet?
Understand the three mountains of JS
数组去重的简单方法(不含引用类型)
[recursive] Ackerman function
[HTTP cache]