1
0
Fork 0

fix lf lazygit shortcut

This commit is contained in:
Luca Bilke 2024-01-10 10:56:34 +01:00
parent 5fb0369c05
commit df9844eebb
1 changed files with 3 additions and 3 deletions

View File

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