How to define an alias in fish shell?

前端 未结 10 619
星月不相逢
星月不相逢 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:48

    This is how I define a new function foo, run it, and save it persistently.

    sthorne@pearl~> function foo
                        echo 'foo was here'
                    end
    sthorne@pearl~> foo
    foo was here
    sthorne@pearl~> funcsave foo
    

提交回复
热议问题