From dfc7bff00dc8aa850a2f4ab156454fd723c6b578 Mon Sep 17 00:00:00 2001 From: jc <46619361+juancwu@users.noreply.github.com> Date: Mon, 2 Oct 2023 10:06:37 -0400 Subject: [PATCH] add check for rust installation --- .config/bash/.bashrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.config/bash/.bashrc b/.config/bash/.bashrc index de832a4..41a81f4 100644 --- a/.config/bash/.bashrc +++ b/.config/bash/.bashrc @@ -217,3 +217,8 @@ if [ $? -ne 0 ]; then else alias lg="lazygit" fi + +command -v rustc > /dev/null 2>&1 +if [ $? -ne 0 ]; then + echo -e "$WARNING rust is not installed" +fi