fix lf lazygit shortcut
This commit is contained in:
parent
0c2f45e2f2
commit
09d30f7bf7
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
}}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue