1
0
Fork 0

fix lf lazygit shortcut

This commit is contained in:
Luca Bilke 2024-01-10 10:56:34 +01:00
parent 0c2f45e2f2
commit 09d30f7bf7

View file

@ -41,10 +41,10 @@ cmd trash &{{
cmd lazygit ${{
clear
if [ ! -e "$PWD/.git" ]; then
[ $(echo "Yes\nNo" | fzf --header="Not in a git repository. Create a new git repository? (y/n): ") = "Yes" ] && git init && lazygit -p $PWD
if ! git -C $PWD status; then
[ $(echo "Yes\nNo" | fzf --header="Not in a git repository. Create a new git repository? (y/n): ") = "Yes" ] && git init && lazygit
else
lazygit -p $PWD
lazygit
fi
}}