Enable ubuntu command not found handler
This commit is contained in:
parent
33037ba06d
commit
dc8475f7bb
2 changed files with 6 additions and 7 deletions
|
@ -73,8 +73,3 @@ fi
|
||||||
|
|
||||||
# Disable dotdrop submodule auto update
|
# Disable dotdrop submodule auto update
|
||||||
export DOTDROP_AUTOUPDATE=no
|
export DOTDROP_AUTOUPDATE=no
|
||||||
|
|
||||||
{%@@ if os == "arch" @@%}
|
|
||||||
# Enable pkgfile command not found handler
|
|
||||||
source /usr/share/doc/pkgfile/command-not-found.zsh
|
|
||||||
{%@@ endif @@%}
|
|
||||||
|
|
|
@ -12,9 +12,13 @@ forgit_revert_commit=fgrc
|
||||||
# Modern replacement for ls
|
# Modern replacement for ls
|
||||||
alias ls='exa'
|
alias ls='exa'
|
||||||
|
|
||||||
{%@@ if os == "termux" @@%}
|
# Enable command not found handler
|
||||||
|
{%@@ if os == "arch" @@%}
|
||||||
|
source /usr/share/doc/pkgfile/command-not-found.zsh
|
||||||
|
{%@@ elif os == "ubuntu" @@%}
|
||||||
|
source /etc/zsh_command_not_found
|
||||||
|
{%@@ elif os == "termux" @@%}
|
||||||
function command_not_found_handler {
|
function command_not_found_handler {
|
||||||
printf 'zsh: command not found: %s\n' "$1"
|
|
||||||
$PREFIX/libexec/termux/command-not-found $1
|
$PREFIX/libexec/termux/command-not-found $1
|
||||||
}
|
}
|
||||||
{%@@ endif @@%}
|
{%@@ endif @@%}
|
||||||
|
|
Loading…
Reference in a new issue