From 50e3a6856e8f5dc1fba12d1345369c26ce938577 Mon Sep 17 00:00:00 2001 From: ratijas Date: Sat, 19 Jun 2021 23:41:14 +0300 Subject: [PATCH] PowerShell: use native Camel-Case style for commands (#650) In PowerShell land it is preferred to use Camel Case for command names, options and parameters, so lets respect that. --- etc/lfcd.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/etc/lfcd.ps1 b/etc/lfcd.ps1 index 6466971..458cf77 100644 --- a/etc/lfcd.ps1 +++ b/etc/lfcd.ps1 @@ -15,10 +15,10 @@ $tmp = [System.IO.Path]::GetTempFileName() lf -last-dir-path="$tmp" $args -if (test-path -pathtype leaf "$tmp") { - $dir = type "$tmp" - remove-item -force "$tmp" - if (test-path -pathtype container "$dir") { +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" }