mirror of
https://github.com/bertptrs/vimconfig.git
synced 2025-12-25 20:40:32 +01:00
Update command-not-found hook.
The hook is now compatible with both ubuntu zsh and arch zsh cnf hooks.
This commit is contained in:
6
zshrc
6
zshrc
@@ -20,7 +20,11 @@ prompt bart
|
||||
setopt HIST_IGNORE_DUPS
|
||||
|
||||
# Setup the CNF hook
|
||||
source /usr/share/doc/pkgfile/command-not-found.zsh
|
||||
if [[ -s /usr/share/doc/pkgfile/command-not-found.zsh ]]; then
|
||||
source /usr/share/doc/pkgfile/command-not-found.zsh
|
||||
elif [[ -s /etc/zsh_command_not_found ]]; then
|
||||
source /etc/zsh_command_not_found
|
||||
fi
|
||||
|
||||
# History search
|
||||
autoload -U history-search-end
|
||||
|
||||
Reference in New Issue
Block a user