Oh my zsh:如果未安装命令,则无消息

Oh my zsh:如果未安装命令,则无消息,zsh,fedora,oh-my-zsh,Zsh,Fedora,Oh My Zsh,我不知道这是zsh的问题还是我的zsh。 如果尝试运行未安装的命令,则不会显示错误消息 示例oh my zsh: ➜ ~ svn -version ➜ ~ bash示例: [mrclrchtr@fedora ~] $ svn -version bash: svn: command not found [mrclrchtr@fedora ~] $ 有人知道为什么zsh中没有错误消息吗 编辑: 这是我的节略~/.zshrc # If you come from bash you might

我不知道这是zsh的问题还是我的zsh。 如果尝试运行未安装的命令,则不会显示错误消息

示例oh my zsh:

➜  ~ svn -version
➜  ~
bash示例:

[mrclrchtr@fedora ~] $ svn -version
bash: svn: command not found
[mrclrchtr@fedora ~] $ 
有人知道为什么zsh中没有错误消息吗

编辑: 这是我的节略~/.zshrc

# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH

# Path to your oh-my-zsh installation.
  export ZSH=/home/mrclrchtr/.oh-my-zsh

# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="robbyrussell"

# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
  git
)

source $ZSH/oh-my-zsh.sh
编辑2

➜  ~ trap
➜  ~ whence -c command_not_found_handler
command_not_found_handler () {
    runcnf=1 
    retval=127 
    [ ! -S /var/run/dbus/system_bus_socket ] && runcnf=0 
    [ ! -x /usr/libexec/packagekitd ] && runcnf=0 
    if [ $runcnf -eq 1 ]
    then
        /usr/libexec/pk-command-not-found $@
        retval=$? 
    fi
    return $retval
}
➜  ~

这是不正常的。请发布你的
.zshrc
,这样我们可以看到它有什么问题。我添加了所有没有注释的部分。你可以发布命令
trap
从哪里找到-c命令\u not \u found \u handler
?我添加了outputhi@mrclrchr。你发现问题了吗?这不正常。请发布你的
.zshrc
,这样我们就可以看到它有什么问题。我添加了所有没有注释的部分。你可以发布命令
trap
的输出吗-c命令\u未找到\u处理程序
?我添加了outputhi@mrclrchtr。你发现问题了吗?