V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
ChiangDi
V2EX  ›  Z shell

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

  •  
  •   ChiangDi · 2015-04-08 19:48:26 +08:00 · 24373 次点击
    这是一个创建于 3508 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    写了一篇关于 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 !

    第 1 条附言  ·  2015-04-09 13:36:43 +08:00
    各位,别贴了你们的命令了,我错了,,管理员警告了,他说算是刷屏了。。
    105 条回复    2015-05-22 08:13:21 +08:00
    1  2  
    no13bus
        1
    no13bus  
       2015-04-08 20:55:27 +08:00
    推荐fish
    zsh太慢了
    DuckJK
        2
    DuckJK  
       2015-04-08 21:03:38 +08:00
    @no13bus 有一次我电脑gentoo用的fish登录不进去了,再因为fish的语法和一般的不同就没再用了。不过原来的时候一直是fish,很好用
    hging
        3
    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
        4
    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
        5
    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
        6
    ChiangDi  
    OP
       2015-04-08 21:15:56 +08:00 via Android
    @no13bus 我用 SSD 从未感觉到慢。

    fish 我也用了半年了,但是最近换回 zsh 了,当然是因为一些兼容性问题,比如如果你用 Node.js 的话就会发现 nvm 不支持 fish,这简直没法用了。当然 nvm 是个特例,不支持 fish 东西太多了,每次都要搜索解决方案把我搞烦了。
    ChiangDi
        7
    ChiangDi  
    OP
       2015-04-08 21:17:31 +08:00 via Android
    @hging 大哥你好时尚, docker 都能排第四!
    Sivan
        8
    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
        9
    no13bus  
       2015-04-08 21:21:45 +08:00
    @ChiangDi 嗯。我的是14年的mac air。应该是ssd吧。确实不支持shell让人上火。
    zeacev
        10
    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
        11
    Twinkle  
       2015-04-08 21:30:29 +08:00
    新装的,暂时还是 sudo 最多,安装了挺多东西
    jokester
        12
    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
        13
    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
        14
    hging  
       2015-04-08 21:56:38 +08:00
    @ChiangDi 否则应该是git=.= 因为我基本不用命令行提交代码. 哈哈.
    Jaylee
        15
    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
        16
    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
        17
    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
        18
    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
        19
    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
        20
    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的别名
    不如玩玩看命令猜工作?
    ChiangDi
        21
    ChiangDi  
    OP
       2015-04-08 23:15:06 +08:00 via Android
    @spacewander 很容易看出来啊,比如经常用 Rake 和 Rails 的就是 Ruby 工程师,经常用 npm 的就是前端或者写 Node.js 的。但是好像前面几个都没有出现 Python 向的。
    wy315700
        22
    wy315700  
       2015-04-08 23:26:48 +08:00
    @ChiangDi 我Python排第八被你忽略了。。。
    p1n3
        23
    p1n3  
       2015-04-08 23:29:11 +08:00 via iPhone
    哇,这么多人用brew.
    还没接触过
    bullettrain1433
        24
    bullettrain1433  
       2015-04-08 23:32:33 +08:00
    1 74 25.6055% ls
    2 47 16.263% cd
    3 32 11.0727% vim
    4 23 7.95848% ssh
    5 12 4.15225% brew
    6 10 3.46021% git
    7 8 2.76817% wget
    8 8 2.76817% cat
    9 7 2.42215% ssh-copy-id
    10 6 2.07612% scp
    ChiangDi
        25
    ChiangDi  
    OP
       2015-04-08 23:36:37 +08:00 via Android
    @wy315700 啊哈没注意到,但是每次敲 python 这么长也很烦的,你可以取个别名比如 py
    ChiangDi
        26
    ChiangDi  
    OP
       2015-04-08 23:38:08 +08:00 via Android
    @p1n3 brew 苹果机上才能用的,只能说 v2ex 用苹果机的还是挺多的。
    barbery
        27
    barbery  
       2015-04-08 23:41:04 +08:00
    1 81 17.234% ls
    2 54 11.4894% svn
    3 47 10% cd
    4 27 5.74468% sh
    5 27 5.74468% ping
    6 27 5.74468% php
    7 25 5.31915% vagrant
    8 25 5.31915% go
    9 21 4.46809% ssh
    10 20 4.25532% sudo
    viko16
        28
    viko16  
       2015-04-08 23:43:33 +08:00
    1 695 16.5476% cd
    2 440 10.4762% ls
    3 333 7.92857% l
    4 240 5.71429% sudo
    5 169 4.02381% php
    6 147 3.5% vagrant
    7 133 3.16667% composer
    8 118 2.80952% git
    9 106 2.52381% fis
    10 95 2.2619% open
    11 93 2.21429% exit
    12 93 2.21429% brew
    13 75 1.78571% ll
    14 75 1.78571% ifconfig
    15 67 1.59524% rm
    16 64 1.52381% say
    17 61 1.45238% cat
    18 60 1.42857% vim
    19 56 1.33333% pwd
    20 50 1.19048% ping
    kukat
        29
    kukat  
       2015-04-08 23:52:05 +08:00
    1 930 9.30093% cd
    2 815 8.15082% ll
    3 702 7.0207% pod
    4 589 5.89059% git
    5 580 5.80058% gst
    6 448 4.48045% brew
    7 311 3.11031% ssh
    8 311 3.11031% ping
    9 241 2.41024% rm
    10 213 2.13021% z
    11 195 1.9502% php
    12 193 1.93019% sudo
    13 179 1.79018% curl
    14 178 1.78018% vi
    15 173 1.73017% open
    16 170 1.70017% vagrant
    17 152 1.52015% ls
    18 143 1.43014% ggpush
    19 127 1.27013% gca
    20 105 1.05011% cat
    iveney
        30
    iveney  
       2015-04-09 00:35:47 +08:00
    ➜ ~ zsh_stats
    1 634 6.34063% git
    2 586 5.86059% brew
    3 584 5.84058% ga
    4 519 5.19052% cd
    5 397 3.9704% ls
    6 394 3.94039% less
    7 339 3.39034% rm
    8 334 3.34033% subl
    9 274 2.74027% mv
    10 236 2.36024% vi
    11 227 2.27023% cat
    12 171 1.71017% ack
    13 168 1.68017% open
    14 160 1.60016% man
    15 157 1.57016% cp
    16 155 1.55016% ssh
    17 149 1.49015% j
    18 142 1.42014% mkdir
    19 141 1.41014% mvim
    20 140 1.40014% ll
    otakustay
        31
    otakustay  
       2015-04-09 00:46:16 +08:00
    用zsh的你们为何会这么常用cd命令- -
    metrue
        32
    metrue  
       2015-04-09 00:47:25 +08:00
    1 1918 19.1819% git
    2 1247 12.4712% vim
    3 989 9.89099% cd
    4 693 6.93069% ls
    5 453 4.53045% rm
    6 378 3.78038% cp
    7 366 3.66037% curl
    8 308 3.08031% clear
    9 260 2.60026% ruby
    10 243 2.43024% mv
    11 224 2.24022% rake
    12 201 2.0102% open
    13 156 1.56016% gem
    14 155 1.55016% grep
    15 147 1.47015% mkdir
    16 142 1.42014% rails
    17 127 1.27013% cat
    18 88 0.880088% ll
    19 85 0.850085% fg
    20 63 0.630063% find
    leebo
        33
    leebo  
       2015-04-09 01:27:04 +08:00
    太感谢了 学习到了 呵呵 cd 用的最多 以后要改善了
    andrewpsy
        34
    andrewpsy  
       2015-04-09 01:59:31 +08:00
    1 2201 22.0122% lla
    2 951 9.51095% port
    3 766 7.66077% sudo
    4 704 7.0407% jobs
    5 673 6.73067% vi
    6 670 6.70067% cd
    7 419 4.19042% git
    8 325 3.25033% rm
    9 228 2.28023% hg
    10 218 2.18022% ..
    11 144 1.44014% svn
    12 129 1.29013% pip
    13 129 1.29013% bum
    14 123 1.23012% bus
    15 106 1.06011% scutil
    16 100 1.0001% upgrade_oh_my_zsh
    17 99 0.990099% mv
    18 65 0.650065% cat
    19 62 0.620062% du
    20 61 0.610061% source
    ivanlw
        35
    ivanlw  
       2015-04-09 07:49:34 +08:00
    $ zsh_stats [23:48:39]
    1 1204 27.7675% ls
    2 673 15.5212% cd
    3 672 15.4982% git
    4 571 13.1688% vim
    5 141 3.25185% yroot
    6 124 2.85978% make
    7 112 2.58303% tmux
    8 107 2.46771% grep
    9 73 1.68358% mvn
    10 69 1.59133% sudo
    11 57 1.31458% cat
    12 53 1.22232% exit
    13 42 0.968635% rm
    14 38 0.876384% cp
    15 37 0.853321% yinst
    16 19 0.438192% man
    17 15 0.345941% pwd
    18 14 0.322878% which
    19 13 0.299815% source
    20 12 0.276753% mv

    暴露公司了……
    ChiangDi
        36
    ChiangDi  
    OP
       2015-04-09 08:02:33 +08:00
    @otakustay 用 cd 不是很正常吗?
    seaify
        37
    seaify  
       2015-04-09 08:32:44 +08:00
    1 378 11.8384% cd
    2 313 9.80269% ls
    3 310 9.70874% git
    4 281 8.8005% vi
    5 257 8.04886% ssh
    6 126 3.94613% sudo
    7 111 3.47635% docker
    8 98 3.06921% npm
    9 93 2.91262% vagrant
    10 79 2.47416% cat
    sfz97308
        38
    sfz97308  
       2015-04-09 08:51:06 +08:00
    1 90 16.0428% cd
    2 59 10.5169% hexo
    3 56 9.98217% ls
    4 41 7.30838% vim
    5 40 7.13012% brew
    6 34 6.06061% gem
    7 32 5.7041% python
    8 30 5.34759% rbenv
    9 22 3.92157% rm
    10 21 3.74332% sudo
    jason52
        39
    jason52  
       2015-04-09 08:56:53 +08:00
    @ChiangDi 别用cd啦,用fasd。。。
    TangMonk
        40
    TangMonk  
       2015-04-09 08:57:52 +08:00
    1 590 10.3745% docker
    2 509 8.95024% g
    3 453 7.96554% rails
    4 411 7.22701% curl
    5 349 6.1368% cd
    6 252 4.43116% ls
    7 224 3.93881% rspec
    8 182 3.20028% subl
    9 173 3.04203% vim
    10 173 3.04203% php
    11 162 2.8486% z
    12 150 2.63759% bundle
    13 139 2.44417% ssh
    14 120 2.11008% brew
    15 111 1.95182% git
    16 108 1.89907% gem
    17 83 1.45947% rake
    18 64 1.12537% proxychains4
    19 52 0.914366% nginx
    20 51 0.896782% ab
    dofine
        41
    dofine  
       2015-04-09 08:58:26 +08:00
    用的 prezto。。
    jason52
        42
    jason52  
       2015-04-09 08:59:15 +08:00
    不过这么说也不完全对,还是要用cd去切的。不过应该有个hot list存常用的目录,然后用pushd或者popd切?不过也有工具可以切,比如Bashmarks 。
    liushuaikobe
        43
    liushuaikobe  
       2015-04-09 09:23:16 +08:00   ❤️ 1
    「转载请著名出处」著名
    ChiangDi
        44
    ChiangDi  
    OP
       2015-04-09 09:34:27 +08:00 via Android
    @jason52 我不用 fasd 的原因是发现 github 上它已经近两年没更新了。。前段时间看到的,不知现在怎样。
    justfly
        45
    justfly  
       2015-04-09 09:36:32 +08:00
    1 592 26.358% vim
    2 546 24.3099% git
    3 373 16.6073% cd
    4 174 7.74711% ls
    5 116 5.16474% ssh
    6 76 3.38379% go
    7 61 2.71594% rm
    8 44 1.95904% grep
    9 37 1.64737% ll
    10 25 1.11309% sudo
    11 18 0.801425% clear
    12 17 0.756901% brew
    13 14 0.62333% mv
    14 11 0.48976% ping
    15 10 0.445236% python
    16 10 0.445236% mkdir
    17 10 0.445236% ipython
    18 10 0.445236% exit
    19 7 0.311665% tree
    20 7 0.311665% source
    ChiangDi
        46
    ChiangDi  
    OP
       2015-04-09 09:39:03 +08:00 via Android
    @dofine 这个类似精简版的 oh my zsh ? 有什么特别的功能吗?
    dofine
        47
    dofine  
       2015-04-09 09:45:04 +08:00
    @ChiangDi 功能都差不多咯,一直用着就懒得切换了。

    我也不是重度使用还没发现什么特别的。不过作者说优点是“快”,当然 ssd 下可能感觉不出来。。
    P9
        48
    P9  
       2015-04-09 09:48:32 +08:00
    1 1803 18.0318% git
    2 1020 10.201% python
    3 821 8.21082% gst
    4 567 5.67057% ssh
    5 490 4.90049% ls
    6 397 3.9704% ggpush
    7 365 3.65037% sudo
    8 314 3.14031% gca
    9 295 2.9503% cd
    10 290 2.90029% j
    11 269 2.69027% gd
    12 244 2.44024% pip
    13 187 1.87019% vim
    14 163 1.63016% gco
    15 125 1.25013% brew
    16 123 1.23012% ggpull
    17 119 1.19012% gc
    18 109 1.09011% ping
    19 107 1.07011% rm
    20 106 1.06011% ga
    r00tt
        49
    r00tt  
       2015-04-09 09:52:48 +08:00
    $ zsh_stats
    1 2116 21.1621% ls
    2 2033 20.332% cd
    3 891 8.91089% git
    4 446 4.46045% adb
    5 313 3.13031% vi
    6 219 2.19022% rails
    7 174 1.74017% ssh
    8 140 1.40014% sudo
    9 138 1.38014% man
    10 135 1.35014% ping
    11 133 1.33013% ndk-build
    12 131 1.31013% brew
    13 127 1.27013% open
    14 125 1.25013% rake
    15 125 1.25013% cap
    16 99 0.990099% rm
    17 83 0.830083% ll
    18 82 0.820082% bundle
    19 76 0.760076% hexo
    20 76 0.760076% cat
    nodeny
        50
    nodeny  
       2015-04-09 09:57:50 +08:00
    1 396 22.9698% cd
    2 338 19.6056% ls
    3 266 15.4292% adb
    4 70 4.06032% vi
    5 61 3.53828% java
    6 53 3.07425% git
    7 43 2.4942% sudo
    8 37 2.14617% mysql
    9 27 1.56613% ping
    10 24 1.39211% ssh
    11 23 1.33411% python
    12 23 1.33411% brew
    13 21 1.2181% mvn
    14 15 0.87007% ifconfig
    15 14 0.812065% go
    16 14 0.812065% chmod
    17 12 0.696056% whereis
    18 12 0.696056% ruby
    19 12 0.696056% LS
    20 11 0.638051% su
    robertding
        51
    robertding  
       2015-04-09 10:00:29 +08:00
    1 1552 15.5216% vi
    2 1331 13.3113% cd
    3 1283 12.8313% git
    4 931 9.31093% l
    5 659 6.59066% ls
    6 417 4.17042% grep
    7 218 2.18022% gd
    8 205 2.05021% rm
    9 184 1.84018% j
    10 177 1.77018% gs
    11 172 1.72017% fg
    12 136 1.36014% exit
    13 128 1.28013% ssh
    14 115 1.15012% http
    15 106 1.06011% sudo
    16 92 0.920092% python
    17 85 0.850085% ping
    18 77 0.770077% scp
    19 72 0.720072% mv
    20 71 0.710071% kill
    roys
        52
    roys  
       2015-04-09 10:01:50 +08:00
    1 1328 14.1322% git
    2 1307 13.9087% ll
    3 1170 12.4508% cd
    4 753 8.0132% sudo
    5 467 4.96967% php
    6 381 4.05449% vi
    7 284 3.02224% docker
    8 272 2.89454% subl
    9 221 2.35181% vagrant
    10 201 2.13898% ..
    11 149 1.58561% rm
    12 144 1.5324% cls
    13 127 1.3515% composer
    14 126 1.34085% ssh
    15 122 1.29829% brew
    16 115 1.22379% svn
    17 113 1.20251% ping
    18 110 1.17059% rails
    19 99 1.05353% gem
    20 78 0.830052% ls
    zhujinliang
        53
    zhujinliang  
       2015-04-09 10:08:34 +08:00
    1 658 12.4739% l
    2 641 12.1517% cd
    3 590 11.1848% vi
    4 440 8.34123% rest # 一个自制的小工具
    5 362 6.86256% git
    6 249 4.72038% ssh
    7 158 2.99526% sudo
    8 111 2.10427% curl
    9 82 1.5545% exit
    10 79 1.49763% rm
    11 76 1.44076% ping
    12 69 1.30806% cat
    13 62 1.17536% go
    14 59 1.11848% tmux
    15 59 1.11848% scp
    16 56 1.06161% cp
    17 52 0.985782% openssl
    18 51 0.966825% brew
    19 45 0.853081% open
    20 44 0.834123% ls
    cedared
        54
    cedared  
       2015-04-09 10:13:44 +08:00
    1 1869 18.6919% cd
    2 1470 14.7015% ls
    3 926 9.26093% adb
    4 664 6.64066% ssh
    5 400 4.0004% ll
    6 388 3.88039% clear
    7 374 3.74037% sudo
    8 369 3.69037% git
    9 252 2.52025% brew
    10 237 2.37024% emacs
    11 198 1.9802% ping
    12 140 1.40014% mate
    13 130 1.30013% python
    14 130 1.30013% musicbox
    15 126 1.26013% ln
    16 120 1.20012% rm
    17 117 1.17012% cat
    18 113 1.13011% docker
    19 93 0.930093% make
    20 92 0.920092% boot2docker
    chuangbo
        55
    chuangbo  
       2015-04-09 10:29:50 +08:00
    感谢推荐,刚用上 fasd
    otakustay
        56
    otakustay  
       2015-04-09 11:05:15 +08:00
    @ChiangDi zsh可以直接输入目录名效果等同于cd,所以我发现除了目录名和某个命令冲突的情况外,我就没用过cd了……
    ChiangDi
        57
    ChiangDi  
    OP
       2015-04-09 11:09:22 +08:00 via Android
    @otakustay nice, 待会我补充上。
    ChiangDi
        58
    ChiangDi  
    OP
       2015-04-09 11:12:53 +08:00 via Android
    我发现前面好几个都有 docker 靠前的,大家好摩登!
    dking
        59
    dking  
       2015-04-09 11:13:20 +08:00
    1 354 14.8677% gss
    2 184 7.72785% ga
    3 170 7.13986% gc
    4 126 5.29189% ggpush
    5 125 5.2499% rs
    6 112 4.70391% vim
    7 108 4.53591% mina
    8 89 3.73793% rake
    9 57 2.39395% git
    10 57 2.39395% bundle
    11 56 2.35195% rc
    12 55 2.30995% rails
    13 51 2.14196% atom
    14 39 1.63797% gco
    15 34 1.42797% g
    16 32 1.34397% j
    17 26 1.09198% ls
    18 26 1.09198% cd
    19 23 0.965981% rm
    20 19 0.797984% RAILS_ENV=production
    huangzxx
        60
    huangzxx  
       2015-04-09 11:19:24 +08:00
    -> % zsh_stats
    1 2272 22.7223% git
    2 882 8.82088% vim
    3 531 5.31053% cd
    4 469 4.69047% rm
    5 402 4.0204% find
    6 387 3.87039% cat
    7 380 3.80038% grep
    jason52
        61
    jason52  
       2015-04-09 11:42:22 +08:00   ❤️ 2
    @ChiangDi 没更新到不是问题,只要可以用就行了。关键是它真的可用,就是在cygwin上卡死了~~
    但在服务器上面还好是蛮好用的,我看了一下他的源代码,shell脚本这是丑陋啊,这样能work,感觉就像随便组装的拖拉机,不得不去F1赛场上开一样~~

    有时间我录个screencast,安利一下以下工具。fasd,readline library, ranger , midnight comander, percol.....

    ======
    主要还是这个人这么说的


    percol是mooz开发的天才作品,假设说我精通各种商业开发工具后的开发效率是1的话,那么精通命令行的开发效率是10,但是有了percol后我的效率是100. 举个例子,我曾经认为Linux的唯一缺陷是没有一个total commander之类的文件管理器方便我查找文件. 有了percol后我根本不care了.

    fasd, clvv/fasd · GitHub ,好像是个华裔写得,虽然最近不更新了,但是是我每日比用的工具,快速进入你以前进过的目录,打任意关键字匹配.

    =====
    zongwan
        62
    zongwan  
       2015-04-09 11:53:44 +08:00
    1 1612 16.1216% git
    2 1122 11.2211% ll
    3 959 9.59096% make
    4 881 8.81088% gs
    5 677 6.77068% cd
    6 558 5.58056% st
    7 354 3.54035% brew
    8 326 3.26033% rm
    9 217 2.17022% cp
    10 181 1.81018% svn
    11 164 1.64016% docker
    12 158 1.58016% scp
    13 146 1.46015% ssh
    14 134 1.34013% ag
    15 116 1.16012% nginx
    16 116 1.16012% cat
    17 95 0.950095% patch
    18 94 0.940094% j
    19 85 0.850085% tar
    20 84 0.840084% mv
    ChiangDi
        63
    ChiangDi  
    OP
       2015-04-09 11:57:17 +08:00 via Android
    @jason52 感谢推荐。
    ZhaoMiing
        64
    ZhaoMiing  
       2015-04-09 12:41:16 +08:00
    1 3923 39.2339% git
    2 1298 12.9813% cd
    3 461 4.61046% ls
    4 433 4.33043% sudo
    5 409 4.09041% svn
    6 259 2.59026% jekyll
    7 182 1.82018% grunt
    8 178 1.78018% node
    9 168 1.68017% px
    10 168 1.68017% npm
    11 144 1.44014% spm
    12 113 1.13011% gulp
    13 100 1.0001% vi
    14 85 0.850085% ssh
    15 84 0.840084% vm
    16 83 0.830083% ping
    17 79 0.790079% cat
    18 76 0.760076% rm
    19 73 0.730073% subl
    20 67 0.670067% curl
    g0thic
        65
    g0thic  
       2015-04-09 12:53:21 +08:00
    1 201 15.3085% cd
    2 143 10.8911% git
    3 118 8.98705% sudo
    4 66 5.02666% rails
    5 59 4.49353% bundle
    6 57 4.3412% npm
    7 45 3.42727% touch
    8 43 3.27494% ls
    9 39 2.9703% which
    10 35 2.66565% ps
    11 33 2.51333% node
    12 30 2.28484% top
    13 28 2.13252% nvm
    14 28 2.13252% brew
    15 26 1.9802% svn
    16 26 1.9802% cd..
    17 25 1.90404% subl
    18 24 1.82788% mkdir
    19 17 1.29474% nginx
    20 16 1.21858% ll
    chenggiant
        66
    chenggiant  
       2015-04-09 12:54:11 +08:00   ❤️ 1
    BB9z
        67
    BB9z  
       2015-04-09 12:59:52 +08:00
    非主流了,各种命令很平均么

    1 351 9.45073% cd
    2 177 4.76575% ls
    3 152 4.09262% pod
    4 131 3.52719% ssh
    5 116 3.12332% brew
    6 114 3.06947% git
    7 110 2.96177% ping
    8 104 2.80022% sudo
    9 101 2.71944% ruby
    10 93 2.50404% j
    11 89 2.39634% asepsisctl
    12 87 2.34249% export
    13 82 2.20786% gem
    14 79 2.12709% aya
    15 77 2.07324% jekyll
    16 70 1.88476% polipo
    17 49 1.31933% echo
    18 46 1.23856% curl
    19 40 1.07701% cat
    20 39 1.05008% sass
    Rabbit52
        68
    Rabbit52  
       2015-04-09 13:01:34 +08:00
    1 3361 33.6134% git
    2 1695 16.9517% ls
    3 1153 11.5312% cd
    4 765 7.65077% docker
    5 265 2.65027% ssh
    6 195 1.9502% j
    7 151 1.51015% vi
    8 150 1.50015% go
    9 134 1.34013% boot2docker
    10 118 1.18012% subl
    chevalier
        69
    chevalier  
       2015-04-09 13:10:41 +08:00
    1 2751 27.8329% git
    2 1167 11.807% cd
    3 1054 10.6637% ls
    4 913 9.23715% python
    5 717 7.25415% ssh
    6 389 3.93565% sudo
    7 326 3.29826% vim
    8 225 2.27641% exit
    9 197 1.99312% clear
    10 159 1.60866% grep
    11 127 1.2849% ps
    12 122 1.23432% supervisorctl
    13 120 1.21408% ipython
    14 114 1.15338% rm
    15 96 0.971267% brew
    16 85 0.859976% mysql
    17 82 0.829624% cat
    18 74 0.748685% scp
    19 56 0.566572% lsof
    20 39 0.394577% ping
    lyris
        70
    lyris  
       2015-04-09 13:10:54 +08:00
    zsh启动太慢不能忍,用一段时间后卸载了
    discrete
        71
    discrete  
       2015-04-09 13:18:55 +08:00
    ➜ ~ zsh_stats
    1 148 13.1556% cd
    2 132 11.7333% ssh
    3 123 10.9333% sudo
    4 110 9.77778% ping
    5 96 8.53333% ls
    6 44 3.91111% dig
    7 31 2.75556% find
    8 29 2.57778% nslookup
    9 29 2.57778% l
    10 26 2.31111% rm
    11 25 2.22222% pod
    12 22 1.95556% whois
    13 16 1.42222% brew
    14 15 1.33333% mount
    15 14 1.24444% killall
    16 14 1.24444% aria2c
    17 12 1.06667% sed
    18 12 1.06667% md5
    19 10 0.888889% wget
    20 9 0.8% youtube-dl
    vCleaner
        72
    vCleaner  
       2015-04-09 13:21:16 +08:00
    不建议楼下各位继续贴命令 Top10,本来很有意义的文章最后会因为刷屏进 /go/survey 的。
    hxtheone
        73
    hxtheone  
       2015-04-09 14:05:15 +08:00
    @ChiangDi 以前也用过一段时间fish,速度比zsh是要快一点,不过不完全兼容bash语法真是硬伤啊

    我还记得当时看了oh-my-fish的代码,兼容rvm的方式居然是用bash -c去执行rvm指令,导致我每次在ruby项目里切换目录就会严重卡顿,真是醉了

    然后就义无反顾的入了zsh大坑
    ChiangDi
        74
    ChiangDi  
    OP
       2015-04-09 14:35:12 +08:00 via Android
    @hxtheone 对啊所以我不用 fish 了。
    zxc337
        75
    zxc337  
       2015-04-09 14:55:04 +08:00
     /Users/zxc ❤ zsh_stats
    1 2108 22.1825% svn
    2 1676 17.6365% ls
    3 1559 16.4053% cd
    4 357 3.75671% cdw
    5 319 3.35683% w
    6 313 3.2937% ssh
    7 293 3.08324% curl
    8 289 3.04114% rm
    9 278 2.92539% find
    10 274 2.8833% sudo
    11 264 2.77807% vi
    12 175 1.84152% mvne
    13 144 1.51531% scp
    14 138 1.45217% hexo
    15 106 1.11544% cat
    16 99 1.04178% cp
    17 81 0.852362% mv
    18 75 0.789224% ps
    19 73 0.768178% brew
    20 72 0.757655% du
    kikyous
        76
    kikyous  
       2015-04-09 15:00:27 +08:00
    ☁ ~ zsh_stats
    1 718 12.7554% rails
    2 715 12.7021% bundle
    3 594 10.5525% cd
    4 446 7.92325% ssh
    5 427 7.58572% ls
    6 332 5.89803% git
    7 308 5.47166% mina
    8 231 4.10375% mvim
    9 204 3.62409% rake
    10 151 2.68254% vim
    11 129 2.2917% atom
    12 109 1.9364% grep
    13 88 1.56333% ps
    14 73 1.29686% brew
    15 61 1.08367% cap
    16 59 1.04814% ifconfig
    17 55 0.977083% ping
    18 50 0.888257% rm
    19 47 0.834962% sudo
    20 40 0.710606% ruby
    leoYu
        77
    leoYu  
       2015-04-09 15:31:40 +08:00
    ⚒ /home/zxc ❤ fc -l 1 | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n50
    1 213 14.078% ls
    2 197 13.0205% cd
    3 166 10.9716% svn
    4 92 6.08063% sudo
    5 80 5.28751% vi
    6 80 5.28751% python
    7 65 4.2961% cdw
    8 59 3.89954% find
    9 58 3.83344% ps
    10 42 2.77594% w
    11 41 2.70985% ssh
    12 39 2.57766% rm
    13 26 1.71844% mysql
    14 18 1.18969% mvne
    15 18 1.18969% cat
    16 17 1.1236% tail
    17 17 1.1236% kill
    18 16 1.0575% less
    19 15 0.991408% pip
    20 13 0.85922% free
    21 13 0.85922% fc
    22 11 0.727032% du
    23 10 0.660939% ping
    24 8 0.528751% mkdir
    25 8 0.528751% >
    26 7 0.462657% which
    27 7 0.462657% wget
    28 7 0.462657% mv
    29 6 0.396563% service
    30 6 0.396563% scp
    31 6 0.396563% netstat
    32 6 0.396563% echo
    33 6 0.396563% cp
    34 6 0.396563% bash
    35 5 0.330469% su
    36 5 0.330469% mvnc
    37 5 0.330469% curl
    38 4 0.264375% pwd
    39 4 0.264375% ifconfig
    40 4 0.264375% crontab
    41 3 0.198282% touch
    42 3 0.198282% top
    43 3 0.198282% tar
    44 3 0.198282% grep
    45 3 0.198282% df
    46 3 0.198282% chown
    47 2 0.132188% yum
    48 2 0.132188% webbench
    49 2 0.132188% vim
    50 2 0.132188% traceroute
    panlilu
        78
    panlilu  
       2015-04-09 15:44:41 +08:00
    1 2401 24.0124% cd
    2 1614 16.1416% ls
    3 1096 10.9611% ssh
    4 382 3.82038% scp
    5 279 2.79028% ping
    6 271 2.71027% rails
    7 189 1.89019% grunt
    8 146 1.46015% vim
    9 144 1.44014% npm
    10 140 1.40014% python
    11 137 1.37014% sudo
    12 128 1.28013% rake
    13 118 1.18012% mina
    14 114 1.14011% bundle
    15 92 0.920092% git
    16 80 0.80008% telnet
    17 73 0.730073% foreman
    18 73 0.730073% brew
    19 65 0.650065% gem
    20 64 0.640064% ll
    ChiangDi
        79
    ChiangDi  
    OP
       2015-04-09 15:49:26 +08:00
    @leoYu
    @panlilu
    @kikyous
    各位!没看到 append 的内容吗??!不要再贴了!!
    Heavytiger
        80
    Heavytiger  
       2015-04-09 15:52:09 +08:00
    1 2581 63.4932% git
    2 515 12.6691% cd
    3 206 5.06765% exit
    4 196 4.82165% ls
    5 144 3.54244% pod
    6 52 1.27921% sudo
    7 31 0.762608% rm
    8 30 0.738007% vim
    9 24 0.590406% npm
    10 19 0.467405% java
    11 18 0.442804% nodemon
    12 17 0.418204% ssh
    13 15 0.369004% open
    14 15 0.369004% node
    15 13 0.319803% rhc
    16 12 0.295203% curl
    17 11 0.270603% mvn
    18 10 0.246002% man
    19 8 0.196802% pwd
    20 7 0.172202% source
    bingwenshi
        81
    bingwenshi  
       2015-04-09 18:16:18 +08:00
    1 3024 30.243% vim
    2 1460 14.6015% ls
    3 1451 14.5115% git
    4 1366 13.6614% cd
    5 293 2.93029% python
    6 247 2.47025% make
    7 177 1.77018% ssh
    8 175 1.75018% rm
    9 171 1.71017% pyenv
    10 156 1.56016% fab
    11 144 1.44014% cp
    12 134 1.34013% ack
    13 106 1.06011% mv
    14 88 0.880088% open
    15 67 0.670067% sudo
    16 59 0.590059% pod
    17 55 0.550055% ping
    18 43 0.430043% pip
    19 39 0.390039% man
    20 38 0.380038% brew
    ChiangDi
        82
    ChiangDi  
    OP
       2015-04-09 18:21:06 +08:00
    @jason52 Hello,刚刚去看了下 percol,好像很复杂的样子,没看懂怎么玩,有什么视频教程吗?
    zeayes
        83
    zeayes  
       2015-04-09 18:31:55 +08:00
    1 2269 22.6923% vim
    2 1456 14.5615% cd
    3 688 6.88069% rm
    4 408 4.08041% gc
    5 389 3.89039% mv
    6 375 3.75038% ls
    7 302 3.0203% git
    8 289 2.89029% cp
    9 186 1.86019% python
    10 179 1.79018% mkdir
    11 172 1.72017% brew
    12 171 1.71017% scp
    13 168 1.68017% grep
    14 163 1.63016% ll
    15 132 1.32013% go
    16 118 1.18012% curl
    17 109 1.09011% cat
    18 108 1.08011% sudo
    19 84 0.840084% man
    20 77 0.770077% ssh
    typcn
        84
    typcn  
       2015-04-09 18:46:21 +08:00
    ➜ typcn git:(master) zsh_stats
    1 1193 19.3826% ls
    2 1186 19.2689% cd
    3 228 3.70431% sudo
    4 212 3.44435% ssh
    5 186 3.02193% clear
    6 164 2.6645% gcc
    7 146 2.37206% nslookup
    8 124 2.01462% pod
    9 123 1.99838% subl
    10 118 1.91714% rm
    11 115 1.8684% git
    12 103 1.67344% sh
    13 82 1.33225% make
    14 80 1.29976% vi
    15 79 1.28351% brew
    16 74 1.20227% otool
    17 73 1.18603% cat
    18 72 1.16978% cordova
    19 45 0.731113% ping
    20 41 0.666125% cnpm
    typcn
        85
    typcn  
       2015-04-09 18:48:56 +08:00
    ls cd 不说了, clear 有强迫症,总是想清一下屏, nslookup 因为 10.10 的 DNS 经常没响应,如果出不来结果就重启 Discoveryd ,其他就很正常了
    ChiangDi
        86
    ChiangDi  
    OP
       2015-04-09 18:52:03 +08:00
    @typcn 你可以不用 clear 啊,直接按 `ctrl + L` 就好了啊。
    Goooogle
        87
    Goooogle  
       2015-04-09 18:53:48 +08:00 via Android
    @jason52
    对于你提到的工具表示很有兴趣 感谢
    如果有screencast 当然会更好
    ChiangDi
        88
    ChiangDi  
    OP
       2015-04-09 18:56:50 +08:00
    @Goooogle 我也觉得,特别是那个什么 percol,说什么效率可以提高 100 倍,可惜我看了一下 github 上得说明没学会怎么用,囧。
    typcn
        89
    typcn  
       2015-04-09 18:57:50 +08:00
    @ChiangDi 顺手了。。
    onlyice
        90
    onlyice  
       2015-04-09 19:52:35 +08:00
    Alt+L 执行 ls 的插件是哪个呢?没找着..
    ChiangDi
        91
    ChiangDi  
    OP
       2015-04-09 19:53:49 +08:00
    @onlyice 自带的啊,不用插件。
    ChiangDi
        92
    ChiangDi  
    OP
       2015-04-09 19:54:35 +08:00   ❤️ 1
    @onlyice 直接按 alt+L 就好了,mac 上可能不太一样。
    onlyice
        93
    onlyice  
       2015-04-09 20:00:45 +08:00
    @ChiangDi 囧,我在虚拟机上装的 Arch Linux 用了 oh-my-zsh,但是按 Alt+L 没用。。奇怪。。
    ChiangDi
        94
    ChiangDi  
    OP
       2015-04-09 20:01:55 +08:00
    @onlyice 可能是和其他什么快捷键冲突之类吧,我也不造。
    jason52
        95
    jason52  
       2015-04-09 21:12:51 +08:00
    @ChiangDi
    @Goooogle
    哈哈,我摘抄那段话来自 一年成为emacs高手那个博主,人家安利的时候比较用力~~哈哈~~关键是用的时候有best practise~~这就是不二法门了~~

    不过fasd倒是开箱即用哎~~ranger要有vim基础,不然就用不来~~mc呢,又最好是从total commander转过来的,不然你就奇怪干啥这样啊???

    另外,所谓的 “ It is inspired by tools like autojump, z and v. ” 也都是一段传奇。。。。
    20131115
        96
    20131115  
       2015-04-09 22:06:43 +08:00
    @dofine +1

    爽多了,启动很快
    r00tt
        97
    r00tt  
       2015-04-10 10:31:53 +08:00
    突然发现用ruby的还是蛮多的嘛
    ChiangDi
        98
    ChiangDi  
    OP
       2015-04-10 10:49:52 +08:00
    @leepood 嗯哼,出人意料的多,感觉比 python 和 node 的都多。
    r00tt
        99
    r00tt  
       2015-04-10 11:07:08 +08:00
    @ChiangDi 我也用ruby ,哈哈
    Captian
        100
    Captian  
       2015-04-10 12:20:16 +08:00
    1 3170 31.7032% git
    2 2783 27.8328% ls
    3 1082 10.8211% cd
    4 498 4.9805% gst
    5 295 2.9503% python
    6 266 2.66027% ag
    7 230 2.30023% vi
    8 171 1.71017% ssh
    9 154 1.54015% subl
    10 152 1.52015% mv
    1  2  
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5231 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 09:22 · PVG 17:22 · LAX 01:22 · JFK 04:22
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.