Suppress or Customize Intro Message in Fish Shell

前端 未结 8 1862
我在风中等你
我在风中等你 2020-12-23 00:32

Is it possible to remove the intro message in fish shell:

Welcome to fish, the friendly interactive shell

Type help for instructions on how to use

相关标签:
8条回答
  • 2020-12-23 01:01

    Warning: No longer works since fish 2.4.0—see Kevin's answer for the correct contemporary solution.

    If there is no environment variable named "fish_greeting", then nothing will be printed. By default, there is a fish_greeting variable. You can erase this:

    set --erase fish_greeting
    
    0 讨论(0)
  • 2020-12-23 01:01

    This is a kind of silly answer. You can create a fish_greeting.fish empty file in ~/.config/fish/functions folder and this will remove the greeting message.

    That can be done by

    $ touch ~/.config/fish/functions/fish_greeting.fish
    

    Or

    $ function fish_greeting.fish
    end
    
    $ funcsave fish_greeting.fish
    
    0 讨论(0)
提交回复
热议问题