Suppress or Customize Intro Message in Fish Shell

前端 未结 8 1889
我在风中等你
我在风中等你 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 00:42

    Add set fish_greeting to your ~/.config/fish/config.fish file.

    This is answered in the Fish FAQ:

    How do I run a command every login? What's fish's equivalent to .bashrc?

    Edit the file ~/.config/fish/config.fish, creating it if it does not exist (Note the leading period).

    How do I change the greeting message?

    Change the value of the variable fish_greeting or create a fish_greeting function. For example, to remove the greeting use:

    set fish_greeting
    

提交回复
热议问题