diff --git a/.config/lf/lfrc b/.config/lf/lfrc index 51efff33..e780de69 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -44,7 +44,7 @@ cmd trash-restore ${{ trash-cli restore $fileid }} -cmd lazygit %{{ +cmd lazygit ${{ dir=$(dirname "$(realpath "${f:-_}")"}) if git --noglob-pathspecs -C $dir status >/dev/null 2>&1; then lf -remote "send $id \$cd '$dir' && lazygit"