source /etc/profile
'case' builtin not inside of switch block
/etc/profile (line 12): case ":${PATH}:" in
^
from sourcing file /etc/profile
called on standard input
source: Error while reading file “/etc/profile”
最初以為是文件弄亂了導致的, 將別的機器的profile拷貝過來替換, 發現還是一樣的問題。
最后發現是因為進入了fish的窗口, 退出重新source即可