Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Terminal zsh/mercurial对每个命令都有帮助_Terminal_Mercurial_Zsh - Fatal编程技术网

Terminal zsh/mercurial对每个命令都有帮助

Terminal zsh/mercurial对每个命令都有帮助,terminal,mercurial,zsh,Terminal,Mercurial,Zsh,在zsh中,我在终端中发出的每个命令都会附加mercurial帮助。 例如: 我完全不知道为什么。有什么办法可以阻止这一切吗?很多人都说alias,但hg根本不在我的别名列表中。您是否在PS1变量中添加了Mercurial命令?有些人这样做是为了显示当前的分支或书签。 “echo$PS1”显示了什么 您可能在那里添加了不正确的Mercurial命令,导致打印帮助消息。$echo$PS1%{$fg[magenta]]}%n%{$reset\u color%}在%{$fg[yellow]]}$(bo

在zsh中,我在终端中发出的每个命令都会附加mercurial帮助。 例如:


我完全不知道为什么。有什么办法可以阻止这一切吗?很多人都说alias,但hg根本不在我的别名列表中。

您是否在PS1变量中添加了Mercurial命令?有些人这样做是为了显示当前的分支或书签。 “echo$PS1”显示了什么


您可能在那里添加了不正确的Mercurial命令,导致打印帮助消息。

$echo$PS1%{$fg[magenta]]}%n%{$reset\u color%}在%{$fg[yellow]]}$(box\u name)%%{$reset\u color%}在%{$fg\u bold[green]}${PWD HOME/{$reset\u color%}$(hg\u prompt\u info)$$(git\u prompt\u info)$$(virtualenv],%{$reset_color%})$
hg_-prompt_-info看起来很有希望。很可能,hg_-prompt_-info是.zshrc或其他点文件中的一个函数。如果您能找到它,这可能就是导致问题的原因。差不多一年后,我终于解决了这个问题。这就是我使用的主题。它包含了hg_-prompt_-info。谢谢@mathiasdmWow,很高兴能够拥有它一年后我帮了忙:-)在那之后看到这一点真是太令人印象深刻了。
$ ls
Applications   Developer      Library        Pictures       VirtualBox VMs
Consensus      Documents      Movies         Projects
Desktop        Downloads      Music          Public

haaduken at nachi in ~Mercurial Distributed SCM

basic commands:

 add           add the specified files on the next commit
 annotate      show changeset information by line for each file
 clone         make a copy of an existing repository
 commit        commit the specified files or all outstanding changes
 diff          diff repository (or selected files)
 export        dump the header and diffs for one or more changesets
 forget        forget the specified files on the next commit
 init          create a new repository in the given directory
 log           show revision history of entire repository or files
 merge         merge working directory with another revision
 pull          pull changes from the specified source
 push          push changes to the specified destination
 remove        remove the specified files on the next commit
 serve         start stand-alone webserver
 status        show changed files in the working directory
 summary       summarize working directory state
 update        update working directory (or switch revisions)

use "hg help" for the full list of commands or "hg -v" for details
$