diff --git a/etc/lfcd.ps1 b/etc/lfcd.ps1 index 458cf772..522fb1f1 100644 --- a/etc/lfcd.ps1 +++ b/etc/lfcd.ps1 @@ -13,14 +13,4 @@ # You may put this in one of the profiles found in $PROFILE. # -$tmp = [System.IO.Path]::GetTempFileName() -lf -last-dir-path="$tmp" $args -if (Test-Path -PathType Leaf "$tmp") { - $dir = Get-Content "$tmp" - Remove-Item -Force "$tmp" - if (Test-Path -PathType Container "$dir") { - if ("$dir" -ne "$pwd") { - cd "$dir" - } - } -} +lf -print-last-dir $args | cd