我一整天都在 tmux 中打开新窗口,但就在几分钟前,我在创建另一个窗口时收到了此错误:/etc/zsh/zshrc:109: no such file or directory: /etc/os-release
看看 的相关部分zshrc
,我看到了这一点:
106 # If you don't want compinit called here, place the line
107 # skip_global_compinit=1
108 # in your $ZDOTDIR/.zshenv
109 if (( ${${(@f)"$(</etc/os-release)"}[(I)ID*=*ubuntu]} )) &&
110 [[ -z "$skip_global_compinit" ]]; then
111 autoload -U compinit
112 compinit
113 fi
追踪错误来源的文件:
[2024-04-26 15:18:19]» cat /etc/os-release
[bat error]: '/etc/os-release': No such file or directory (os error 2)
[