Fish shell“fish_prompt.fish”错误

Fish shell“fish_prompt.fish”错误
_tide_remove_unusable_items: command not found
~/.config/fish/functions/fish_prompt.fish (line 5): 
_tide_remove_unusable_items
^~~~~~~~~~~~~~~~~~~~~~~~~~^
from sourcing file ~/.config/fish/functions/fish_prompt.fish
_tide_cache_variables: command not found
~/.config/fish/functions/fish_prompt.fish (line 6): 
_tide_cache_variables
^~~~~~~~~~~~~~~~~~~~^
from sourcing file ~/.config/fish/functions/fish_prompt.fish
_tide_parent_dirs: command not found
~/.config/fish/functions/fish_prompt.fish (line 7): 
_tide_parent_dirs
^~~~~~~~~~~~~~~~^
from sourcing file ~/.config/fish/functions/fish_prompt.fish
source: Error encountered while sourcing file 'n/a':
source: No such file or directory
_tide_pwd: command not found
~/.config/fish/functions/fish_prompt.fish (line 1): 
_tide_pwd
^~~~~~~~^
in command substitution
    called on line 15 of file ~/.config/fish/functions/fish_prompt.fish
in function 'fish_prompt'
in command substitution
~/.config/fish/functions/fish_prompt.fish (line 15): Unknown command
    string replace @PWD@ (_tide_pwd)  $_tide_prompt_4539[1]' '
                         ^~~~~~~~~~^
in function 'fish_prompt'
in command substitution
fish: Unknown command: _tide_1_line_prompt
fish: 
_tide_1_line_prompt
^~~~~~~~~~~~~~~~~~^
in command substitution
fish: Unknown command
PATH=/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/home/linuxbrew:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin CMD_DURATION=1042 fish_bind_mode=default set _tide_prompt_4539 (_tide_1_line_prompt)
                                                                                                                                                                                                                                                                               ^~~~~~~~~~~~~~~~~~~~^
_tide_pwd: command not found
~/.config/fish/functions/fish_prompt.fish (line 1): 
_tide_pwd
^~~~~~~~^
in command substitution
    called on line 15 of file ~/.config/fish/functions/fish_prompt.fish
in function 'fish_prompt'
in command substitution
~/.config/fish/functions/fish_prompt.fish (line 15): Unknown command
    string replace @PWD@ (_tide_pwd)  $_tide_prompt_4539[1]' '
                         ^~~~~~~~~~^
in function 'fish_prompt'
in command substitution`

每当我尝试在 ubuntu 22.04 LTS 上使用 fish 时,都会出现这种情况。我以前用过 fisher 插件,效果很好,但当我尝试安装时omf 主题它不起作用,所以我运行它omf doctor,它告诉我删除这个文件 - ~/.config/fish/functions/fish_prompt.fish。我认为错误是在这之后出现的,但我并不完全确定。

我可以在 fish 中运行命令,但总是出现此代码。我尝试在互联网上搜索,但没有找到任何有效的解决方案,我也尝试过清除它然后重新安装它,但没有变化。

相关内容