How to define an alias in fish shell?

前端 未结 10 628
星月不相逢
星月不相逢 2020-12-07 06:56

I would like to define some aliases in fish. Apparently it should be possible to define them in

~/.config/fish/functions

but they don\'t g

10条回答
  •  青春惊慌失措
    2020-12-07 07:34

    If you add an abbr instead of an alias you'll get better auto-complete. In fish abbr more closely matches the behavior of a bash alias.

    abbr -a gco git checkout
    

    Will -add a new abbreviation gco that expands to git checkout.

    Here's a video demo of the resulting auto-complete features

提交回复
热议问题