Skip to content

Commit 64d650d

Browse files
Copilotkelleyma49
andauthored
Swap order of $AppNames array items for optimization (#366)
* Initial plan * Swap order of $AppNames array items for Windows optimization Co-authored-by: kelleyma49 <2152684+kelleyma49@users.noreply.github.com> * Swap order of $AppNames array items for macOS and Linux Co-authored-by: kelleyma49 <2152684+kelleyma49@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: kelleyma49 <2152684+kelleyma49@users.noreply.github.com>
1 parent aee7d2f commit 64d650d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PSFzf.Base.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,14 +1029,14 @@ function SetPsReadlineShortcut($Chord, [switch]$Override, $BriefDesc, $Desc, [sc
10291029

10301030
function FindFzf() {
10311031
if ($script:IsWindows) {
1032-
$AppNames = @('fzf-*-windows_*.exe', 'fzf.exe')
1032+
$AppNames = @('fzf.exe', 'fzf-*-windows_*.exe')
10331033
}
10341034
else {
10351035
if ($IsMacOS) {
1036-
$AppNames = @('fzf-*-darwin_*', 'fzf')
1036+
$AppNames = @('fzf', 'fzf-*-darwin_*')
10371037
}
10381038
elseif ($IsLinux) {
1039-
$AppNames = @('fzf-*-linux_*', 'fzf')
1039+
$AppNames = @('fzf', 'fzf-*-linux_*')
10401040
}
10411041
else {
10421042
throw 'Unknown OS'

0 commit comments

Comments
 (0)