I've finally decided to take the plunge and try out zsh. Running on a CentOS 7 machine. The only thing I find strangely aggravating is that for some reason each time I enter an unknown command, I get command not found twice:
For example, if I type "fail"
zsh: fail: command not found...
zsh: command not found: fail
I can't for the life of me figure out why this is the case, or find anyone else that seems to have had this problem. Perhaps my Google-fu is not strong enough, but any pointers would be appreciated.
my .zsh is just the basic one so far:
HISTFILE=~/.histfile
HISTSIZE=10000
SAVEHIST=10000
bindkey -e
zstyle :compinstall filename '/home/bmgraves/.zshrc'
autoload -Uz compinit
compinit
with bash:
bash: fail: command not found...
tcsh:
fail: Command not found.
print $+functions[command_not_found_handler]
+zsh:2> print 1
1
zsh -x:
+zsh:7> fail
+command_not_found_handle:1> local 'runcnf=1'
+command_not_found_handle:2> local 'retval=127'
+command_not_found_handle:5> [[ $- -regex-match i ]]
+command_not_found_handle:8> [ '!' -S /var/run/dbus/system_bus_socket ']'
+command_not_found_handle:11> [ '!' -x /usr/libexec/packagekitd ']'
+command_not_found_handle:14> [ ']'
+command_not_found_handle:17> [ 1 -eq 1 ']'
+command_not_found_handle:18> /usr/libexec/pk-command-not-found fail
zsh: fail: command not found...
+command_not_found_handle:19> retval=127
+command_not_found_handle:26> return 127
zsh: command not found: fail
zsh -x
might be handy to see what is going on. Or, what doesprint $+functions[command_not_found_handler]
show?