summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-01-07 17:51:12 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-01-07 17:51:12 +0800
commit5c66ff30d131c758c7833d56a14407219aa1a6dc (patch)
tree337a30a53b847ceedb4ba9926b7e97ba135d03d2
parent89c9bcbda11a7598eab7ebb59e6efb8ba1ee7609 (diff)
change: .zshrc: better errors
-rw-r--r--dot-zshrc6
1 files changed, 3 insertions, 3 deletions
diff --git a/dot-zshrc b/dot-zshrc
index 38114a16..0c1d7ca2 100644
--- a/dot-zshrc
+++ b/dot-zshrc
@@ -41,7 +41,7 @@ source $HOME/.config/zsh/prompt.zsh
command_not_found_handler() {
local pkgs cmd="$@"
- printf '\033[0;31m\033[1m-> ERROR: Command not found: %s\n' "$cmd"
+ printf '\033[0;31m\033[1m==> ERROR: Command not found:\033[0m %s\n' "$cmd"
printf '\033[0m'
printf 'Checking for package.'
(
@@ -94,7 +94,7 @@ command_not_found_handler() {
precmd() {
if [[ "$?" != 0 && "$?" != 127 && "$?" != 2 ]]; then
- printf "\033[0;31m\033[1m-> ERROR: Command Faild to run.\n\n"
+ printf "\033[0;31m\033[1m==> ERROR: Command Faild to run.\n\n"
#printf 'Do you want to fuck? (y/N) '
#if read -q "choice? "; then
# fuck $@
@@ -102,7 +102,7 @@ precmd() {
#else
# printf "\n"
fi
- printf "\n"
+ # printf "\n"
}
# Export environment variables.