diff options
author | tilpner | 2019-09-17 15:25:59 +0200 |
---|---|---|
committer | tilpner | 2019-09-17 15:25:59 +0200 |
commit | 47d502d5780d0cf26e8bf5a1312b6f14b133b13d (patch) | |
tree | 71cf1dac1a92a33b72cdf72102aebe3c0735a24c /conf.d/99-command-not-found.zsh | |
parent | 2be3a3d75c89f4500a3de337b4d41d721a0fc376 (diff) | |
download | zsh-47d502d5780d0cf26e8bf5a1312b6f14b133b13d.tar.gz zsh-47d502d5780d0cf26e8bf5a1312b6f14b133b13d.tar.xz zsh-47d502d5780d0cf26e8bf5a1312b6f14b133b13d.zip |
command-not-found: init
Diffstat (limited to 'conf.d/99-command-not-found.zsh')
-rw-r--r-- | conf.d/99-command-not-found.zsh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/conf.d/99-command-not-found.zsh b/conf.d/99-command-not-found.zsh new file mode 100644 index 0000000..c4722fb --- /dev/null +++ b/conf.d/99-command-not-found.zsh @@ -0,0 +1,8 @@ +command_not_found_handler() { + if type nix-locate > /dev/null; then + echo "Command not found, but found in the following packages:" + nix-locate -w1 -- "$1" + else + echo "Command not found, and nix-locate not available" + fi +} |