diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-01-07 17:51:12 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-01-07 17:51:12 +0800 |
| commit | 5c66ff30d131c758c7833d56a14407219aa1a6dc (patch) | |
| tree | 337a30a53b847ceedb4ba9926b7e97ba135d03d2 | |
| parent | 89c9bcbda11a7598eab7ebb59e6efb8ba1ee7609 (diff) | |
change: .zshrc: better errors
| -rw-r--r-- | dot-zshrc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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. |
