Macos zsh:没有这样的文件或目录

Macos zsh:没有这样的文件或目录,macos,curl,terminal,zsh,prezto,Macos,Curl,Terminal,Zsh,Prezto,我正在尝试在我的OSX Yosemite上安装for,并遵循给定的说明 当我运行第三步提到的这个命令时 # Install the prompt curl https://raw.github.com/davidjrice/prezto_powerline/master/prompt_powerline_setup > ~/.zsh.prompts/prompt_powerline_setup 我得到这个错误 zsh: no such file or directory: /Users/

我正在尝试在我的OSX Yosemite上安装for,并遵循给定的说明

当我运行第三步提到的这个命令时

# Install the prompt
curl https://raw.github.com/davidjrice/prezto_powerline/master/prompt_powerline_setup > ~/.zsh.prompts/prompt_powerline_setup
我得到这个错误

zsh: no such file or directory: /Users/jitendravyas/.zsh.prompts/prompt_powerline_setup
我使用自制和curl安装了curl——版本显示了此输出

curl 7.37.1 (x86_64-apple-darwin14.0) libcurl/7.37.1 SecureTransport zlib/1.2.5
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IPv6 Largefile NTLM NTLM_WB SSL libz

在我看来,卷发起作用了。我不知道有什么问题。为什么此命令不起作用。

目录
/Users/jitendravyas/.zsh.prompts/
不存在。当输出重定向
>
将创建不存在的文件时,父目录必须预先存在。错误消息可能有点含糊不清,确切地说是不存在的

照办

mkdir ~/.zsh.prompts
curl https://raw.github.com/davidjrice/prezto_powerline/master/prompt_powerline_setup > ~/.zsh.prompts/prompt_powerline_setup
它应该会起作用