From 998b8bcb3bb5311211cc042682cddb7957759602 Mon Sep 17 00:00:00 2001 From: jc <46619361+juancwu@users.noreply.github.com> Date: Sun, 1 Oct 2023 20:17:59 -0400 Subject: [PATCH] add check for lazygit and set alias if exists --- .config/bash/.bashrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.config/bash/.bashrc b/.config/bash/.bashrc index 8fd2889..de832a4 100644 --- a/.config/bash/.bashrc +++ b/.config/bash/.bashrc @@ -210,3 +210,10 @@ command -v notify-send > /dev/null 2>&1 if [ $? -ne 0 ]; then echo -e "$WARNING notify-send is not installed. Will affect the alias: \033[34;49;1malert\033[0m" fi + +command -v lazygit > /dev/null 2>&1 +if [ $? -ne 0 ]; then + echo -e "$WARNING lazygit is not installed" +else + alias lg="lazygit" +fi