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.
This commit is contained in:
parent
9885c4be7a
commit
50e3a6856e
@ -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"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user