每次启动 fish shell 时都会出现一行欢迎标语,看着烦,我们可以通过下面的方法永久禁用它。
- In
~/.config/fish/config.fish``, add this:
set fish_greeting
- Or
set -U fish_greeting ""
- 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