那些我希望在一开始使用 Zsh(oh-my-zsh) 时就知道的

2015-04-08 19:48:26 +08:00
 ChiangDi

好吧我承认用了个烂俗的标题。。。

写了一篇关于 zsh 和 oh-my-zsh 的一篇文章:http://www.jiang-di.org/tools/2015/04/08/i-hope-know-when-first-use-zsh.html

上面介绍了一些非常有用的 zsh 插件比如 zzsh-autosuggestions,以及一些神奇的 oh-my-zsh 自带的命令。比如观看历史记录的d 以及可以看到你的使用频率前 10 的命令的 zsh_stats

大家还有什么推荐的我可以加上去喔!

另外用 oh-my-zsh 的同学可以在 Terminal 里敲zsh_stats回车,晒晒你使用命令的 top 10 !

24453 次点击
所在节点    Z shell
105 条回复
no13bus
2015-04-08 20:55:27 +08:00
推荐fish
zsh太慢了
DuckJK
2015-04-08 21:03:38 +08:00
@no13bus 有一次我电脑gentoo用的fish登录不进去了,再因为fish的语法和一般的不同就没再用了。不过原来的时候一直是fish,很好用
hging
2015-04-08 21:06:24 +08:00
1 817 15.7479% ls
2 761 14.6685% cd
3 420 8.09561% ssh
4 365 7.03547% docker
5 252 4.85736% cap
6 199 3.83577% rs
7 186 3.5852% rake
8 167 3.21897% vi
9 130 2.50578% rc
10 117 2.2552% sudo
wwwap
2015-04-08 21:07:37 +08:00
```sh
1 440 38.0294% git
2 115 9.9395% ls
3 111 9.59378% cd
4 56 4.8401% grunt
5 43 3.71651% ssh
6 38 3.28436% vim
7 37 3.19793% mosh
8 36 3.1115% npm
9 34 2.93863% sudo
10 18 1.55575% tmux
11 12 1.03717% brew
12 11 0.950735% nginx
13 10 0.864304% yo
14 10 0.864304% locale
15 8 0.691443% pwd
16 8 0.691443% mkdir
17 8 0.691443% gem
18 8 0.691443% df
19 7 0.605013% wget
20 7 0.605013% make
```
wy315700
2015-04-08 21:10:28 +08:00
1 1632 16.3216% git
2 1587 15.8716% cd
3 911 9.11091% ping
4 696 6.9607% dig
5 648 6.48065% ssh
6 613 6.13061% ls
7 482 4.82048% sudo
8 390 3.90039% python
9 147 1.47015% ll
10 141 1.41014% brew
11 129 1.29013% vim
12 125 1.25013% openssl
13 110 1.10011% mysql.server
14 105 1.05011% tcping
15 98 0.980098% scp
16 97 0.970097% adb
17 96 0.960096% subl
18 90 0.90009% ab
19 83 0.830083% rm
20 76 0.760076% livestreamer
ChiangDi
2015-04-08 21:15:56 +08:00
@no13bus 我用 SSD 从未感觉到慢。

fish 我也用了半年了,但是最近换回 zsh 了,当然是因为一些兼容性问题,比如如果你用 Node.js 的话就会发现 nvm 不支持 fish,这简直没法用了。当然 nvm 是个特例,不支持 fish 东西太多了,每次都要搜索解决方案把我搞烦了。
ChiangDi
2015-04-08 21:17:31 +08:00
@hging 大哥你好时尚, docker 都能排第四!
Sivan
2015-04-08 21:21:07 +08:00
1 834 19.5683% git
2 448 10.5115% cd
3 369 8.65791% sudo
4 328 7.69592% npm
5 308 7.22665% gulp
no13bus
2015-04-08 21:21:45 +08:00
@ChiangDi 嗯。我的是14年的mac air。应该是ssd吧。确实不支持shell让人上火。
zeacev
2015-04-08 21:29:17 +08:00
1 146 17.4432% ls
2 145 17.3238% cd
3 138 16.4875% hexo
4 89 10.6332% ssh
5 48 5.73477% vim
6 43 5.1374% git
7 40 4.77897% rm
8 39 4.6595% ping
9 26 3.10633% npm
10 17 2.03106% scp
11 15 1.79211% nslookup
12 12 1.43369% brew
13 8 0.955795% tar
14 7 0.83632% sudo
15 4 0.477897% traceroute
16 4 0.477897% top
17 4 0.477897% mv
18 3 0.358423% ipconfig
19 3 0.358423% dig
20 3 0.358423% cp
Twinkle
2015-04-08 21:30:29 +08:00
新装的,暂时还是 sudo 最多,安装了挺多东西
jokester
2015-04-08 21:30:57 +08:00
1 1602 24.6234% git
2 863 13.2647% ssh
3 666 10.2367% ll
4 616 9.46818% cd
5 399 6.1328% ls
6 229 3.51983% brew
7 199 3.05872% vim
8 154 2.36705% ping
9 129 1.98279% find
10 105 1.61389% rm
11 97 1.49093% s
12 95 1.46019% make
13 64 0.983707% scp
14 55 0.845374% sudo
15 55 0.845374% cat
16 38 0.584076% mv
17 37 0.568706% which
18 37 0.568706% grep
19 37 0.568706% file
20 34 0.522595% tar
ycyppq123
2015-04-08 21:40:15 +08:00
1 369 23.7911% ssh
2 252 16.2476% ping
3 210 13.5397% ls
4 171 11.0251% cd
5 71 4.57769% vim
6 49 3.15925% mtr
7 42 2.70793% source
8 36 2.32108% npm
9 33 2.12766% brew
10 30 1.93424% sudo
11 30 1.93424% adb
12 23 1.48291% git
13 21 1.35397% vi
14 21 1.35397% echo
15 14 0.902643% mysql
16 13 0.838169% cat
17 9 0.580271% rm
18 8 0.515796% ant
19 7 0.451322% touch
20 7 0.451322% gem
才开始用
hging
2015-04-08 21:56:38 +08:00
@ChiangDi 否则应该是git=.= 因为我基本不用命令行提交代码. 哈哈.
Jaylee
2015-04-08 22:00:22 +08:00
1 1807 18.0718% ls
2 1802 18.0218% cd
3 1045 10.451% ll
4 789 7.89079% vim
5 489 4.89049% brew
6 460 4.60046% git
7 317 3.17032% vagrant
8 311 3.11031% rm
9 147 1.47015% sudo
10 141 1.41014% ping
11 123 1.23012% php
12 119 1.19012% ssh
13 101 1.0101% cp
14 98 0.980098% echo
15 93 0.930093% mv
16 81 0.810081% ruby
17 79 0.790079% mkdir
18 65 0.650065% awk
19 62 0.620062% ps
20 59 0.590059% composer
maemual
2015-04-08 22:14:56 +08:00
1 1442 21.7431% git
2 1053 15.8776% ll
3 947 14.2793% cd
4 589 8.88118% vim
5 402 6.06152% ssh
6 352 5.3076% ping
7 162 2.4427% go
8 154 2.32207% vagrant
9 110 1.65862% rm
10 89 1.34198% livecode
Oleg
2015-04-08 22:27:57 +08:00
1 3069 30.6931% git
2 895 8.9509% exit
3 808 8.08081% ll
4 539 5.39054% make
5 525 5.25053% vim
6 525 5.25053% gl
7 520 5.20052% cd
8 288 2.88029% ssh
9 268 2.68027% docker
10 261 2.61026% tm
11 244 2.44024% sudo
12 230 2.30023% php
13 173 1.73017% cat
14 169 1.69017% ..
15 124 1.24012% ping
16 104 1.0401% scp
17 94 0.940094% rm
18 77 0.770077% cp
19 64 0.640064% find
20 62 0.620062% curl
plan9
2015-04-08 22:33:06 +08:00
1 3648 36.4836% git
2 972 9.72097% emacs
3 770 7.70077% cd
4 555 5.55056% rm
5 474 4.74047% make
6 455 4.55046% ls
7 321 3.21032% rails
8 225 2.25023% ssh
9 223 2.23022% mv
10 223 2.23022% cat
11 202 2.0202% rsync
12 178 1.78018% rake
13 130 1.30013% cp
14 106 1.06011% ruby
15 90 0.90009% mkdir
16 80 0.80008% brew
17 72 0.720072% bundle
18 65 0.650065% open
19 59 0.590059% gtags
20 53 0.530053% gem
orvice
2015-04-08 22:35:42 +08:00
1 76 18.1818% git
2 64 15.311% cd
3 57 13.6364% php
4 42 10.0478% ssh
5 39 9.33014% ls
6 24 5.74163% ping
7 15 3.58852% brew
8 12 2.87081% sudo
9 8 1.91388% pwd
10 7 1.67464% rm
11 7 1.67464% cat
12 6 1.43541% laravel
13 5 1.19617% mv
14 5 1.19617% composer
15 4 0.956938% whois
16 4 0.956938% chmod
17 3 0.717703% vim
18 3 0.717703% uptime
19 3 0.717703% nslookup
20 2 0.478469% traceroute
spacewander
2015-04-08 22:54:20 +08:00
1 922 9.20619% v
2 853 8.51722% git
3 461 4.6031% ag
4 378 3.77434% sudo
5 336 3.35497% cat
6 319 3.18522% ls
7 307 3.0654% man
8 271 2.70594% j
9 222 2.21667% find
10 176 1.75736% cd
11 172 1.71742% mv
12 169 1.68747% cp
13 160 1.5976% rrm
14 149 1.48777% g++
15 123 1.22816% vim
16 123 1.22816% echo
17 103 1.02846% less
18 92 0.918622% mkdir
19 89 0.888667% gcc
20 87 0.868697% rm

v是vim的别名
不如玩玩看命令猜工作?

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/182390

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX