no13bus
V2EX  ›  问与答

为什么我在 zsh 里面定义了 alias -s gz='tar -xzvf'用的时候还是不行。手动直接定义,输入 gz+文件名字还是不行。

  •  
  •   no13bus · Oct 16, 2014 · 2719 views
    This topic created in 4252 days ago, the information mentioned may be changed or developed.
    zsh执行情况如下:
    # no13bus at no13busdeMacBook-Air.local in ~ [22:59:15]
    $ alias -s gz='tar -xzvf'

    # no13bus at no13busdeMacBook-Air.local in ~ [22:59:48]
    $ gz
    zsh: command not found: gz
    1 replies    2014-10-17 00:16:24 +08:00
    ozking
        1
    ozking  
       Oct 17, 2014 via iPhone
    -s是说后缀以gz结尾的run tar这个命令
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5518 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 07:57 · PVG 15:57 · LAX 00:57 · JFK 03:57
    ♥ Do have faith in what you're doing.