fish 禁用 greetings

657 阅读1分钟

每次启动 fish shell 时都会出现一行欢迎标语,看着烦,我们可以通过下面的方法永久禁用它。

  1. In ~/.config/fish/config.fish``, add this:

 

set fish_greeting
  1. Or 

 

set -U fish_greeting ""
  1. create a fish function

 

function fish_greeting
    fortune
end

Note: you need to install fortune first. you can use fortune -a also.

4. 

 

set -e fish_greeting

如果你喜欢我的文章,可以关注我的公众号 deliverit