无法为 [FishShell] 创建配置目录 请设置 $XDG_CONFIG_HOME 变量

无法为 [FishShell] 创建配置目录 请设置 $XDG_CONFIG_HOME 变量

启动fishshell时出现此错误:

melanie:~ melanie$ fish

fish: Unable to create a configuration directory for fish. Your personal
settings will not be saved. Please set the $XDG_CONFIG_HOME variable to
a directory where the current user has write access.

我如何设置该变量?

相关内容