【发布时间】:2020-05-11 07:54:19
【问题描述】:
我想删除鱼壳问候语。当我在寻找解决方案时,我去了this StackOverflow question,看到了一种可以将默认欢迎脚本最小化为新脚本的技术。我在我的终端上做了这个:
pranav@exam ~> function fish_greeting
StackOverflow
end
pranav@exam ~> funcsave fish_greeting
这是被接受且被高度评价的答案。我想知道为什么它对我不起作用。因为再次启动终端会在用户输入上方显示这个大混乱:
~/.config/fish/functions/fish_greeting.fish (line 2):
StackOverflow
^
in function 'fish_greeting'
called on line 126 of file /usr/share/fish/functions/__fish_config_interactive.fish
in function '__fish_config_interactive'
called on line 170 of file /usr/share/fish/config.fish
in function '__fish_on_interactive'
in event handler: handler for generic event “fish_prompt”
pranav@exam ~>
所以当我找到this command in the FAQ page of Fish时,我想完全删除它的问候:
pranav@exam ~> set fish_greeting
现在,问题是这不起作用。我重新启动了终端,停止了 GDM,并重新启动了 GDM,因为我使用了 Wayland 显示服务器,尝试注销和登录,甚至重新启动了我的计算机,但没有一个工作。因为每当我启动终端时,我仍然可以看到错误消息。我使用 Ubuntu 20.04 和 pranav@exam ~>。如果你是鱼壳专家,请帮助刚刚开始使用这个神奇贝壳的菜鸟学生。
【问题讨论】:
标签: ubuntu config gnome fish gnome-terminal