我在zsh中在终端中创建的每个命令都会获得附加的mercurial帮助。 例如:
$ 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
$
我完全不知道为什么。任何想法我怎么能阻止这个?很多人都在说别名,但hg根本不在我的别名列表中。
答案 0 :(得分:1)
您是否在PS1变量中添加了Mercurial命令?有些人这样做,以显示当前分支或书签。 什么'回声$ PS1'显示?
您可能在那里添加了错误的Mercurial命令,这会导致打印帮助消息。