我已经安装了哦- my -fish和bobthefish,我想使用bobthefish主题,我按照他的建议将Theme bobthefish放入我的~/.config/fish/config.fish并运行omf install,但它报告了一个错误:
fish: Unknown command 'Theme bobthefish'
~/.config/fish/config.fish (line 19): Theme bobthefish
^
from sourcing file ~/.config/fish/config.fish
called during startup这是我的config.fish
# Path to your oh-my-fish.
set -g OMF_PATH $HOME/.local/share/omf
# Path to your oh-my-fish configuration.
set -g OMF_CONFIG $HOME/.config/omf
fish_vi_mode
set --export EDITOR "vim"
### Configuration required to load oh-my-fish ###
# Note: Only add configurations that are required to be set before oh-my-fish is loaded.
# For common configurations, we advise you to add them to your $OMF_CONFIG/init.fish file or
# to create a custom plugin instead.
# Load oh-my-fish configuration.
source $OMF_PATH/init.fish
Theme bobthefish发布于 2016-01-02 12:29:48
我是“哦我的鱼”的贡献者之一。
我强烈建议您通过执行全新安装来从以前的版本升级。请按照哦My Fish存储库的自述文件中提供的升级说明进行操作。
在全新安装之后,只需发布一个omf install bobthefish,您就可以进入主题了。
如果您仍然需要帮助,请随时加入我们的Slack并提高您的声音!
发布于 2015-09-10 17:59:09
如果你还在使用一个老版本的oh-my-fish,你必须在主题名称周围加上“。
对于较新的版本,您可以遵循recommended upgrade path that oh-my-fish provides
mv ~/.config/fish/config{,_old}.fishrm -rf ~/.oh-my-fish~/.config/fish/config_old.fishPlugin和Theme开头的行,并将其放入$OMF_CONFIG/bundle文件。如果不存在,则将其创建并将所有行转换为package namePlugin "name"行转换为Theme "name"因此,总而言之,如果你想在这个新版本中安装一个主题,你需要在你的~/.config/omf/bundle文件中放入theme bobthefish。
发布于 2015-10-01 23:59:49
试试这个:
从哦-my-fish slack论坛上,它只是删除了fish_promt默认文件。
干杯
https://stackoverflow.com/questions/32497744
复制相似问题