我能够运行一个名为“HOME”的命令,它似乎等同于cd && echo "~"
. 但我无法弄清楚它是在哪里定义的:
$ pwd
/tmp
$ which HOME
HOME not found
$ type HOME
HOME not found
$ man HOME
No manual entry for HOME
$ HOME
~
$ pwd
/Users/tba
Run Code Online (Sandbox Code Playgroud)
这是内置的shell吗?这似乎更像是打印我的主目录的完全限定路径的失败尝试。
我在 OS X Yosemite 上运行 ZSH(使用 Oh-My-Zsh)。