fix lf lazygit shortcut
This commit is contained in:
parent
5fb0369c05
commit
df9844eebb
|
@ -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
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue