From e3115ebbb57688ad575ace6acda951ff52a3b8e0 Mon Sep 17 00:00:00 2001 From: Wiktor Zykubek Date: Wed, 22 Apr 2020 21:02:28 +0200 Subject: [PATCH] Set custom error zsh message Change output for zsh 127 error code to fun text and kaomoji. --- botfiles/.zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/botfiles/.zshrc b/botfiles/.zshrc index 6a5bcc5..936e3a7 100644 --- a/botfiles/.zshrc +++ b/botfiles/.zshrc @@ -22,6 +22,11 @@ HISTFILE="${ZDIR}/history" source $HOME/.profile source $HOME/.shellrc +# error message +command_not_found_handler() { + printf "\nahh shit, command not found\n\033[0;31m(╯°□°)╯︵ ┻━┻\n\n" +} + # prompt setopt prompt_subst setopt autocd