m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-19 09:03:43 -05:00

[vim] Download latest binary to meet version requirement

This commit is contained in:
Junegunn Choi
2020-10-27 01:01:58 +09:00
parent e73383fbbb
commit 607081bbaa
3 changed files with 38 additions and 9 deletions

View File

@@ -1,11 +1,5 @@
$version="0.23.1"
if ([Environment]::Is64BitProcess) {
$binary_arch="amd64"
} else {
$binary_arch="386"
}
$fzf_base=Split-Path -Parent $MyInvocation.MyCommand.Definition
function check_binary () {
@@ -68,6 +62,6 @@ function download {
check_binary >$null
}
download "fzf-$version-windows_$binary_arch.zip"
download "fzf-$version-windows_amd64.zip"
Write-Host 'For more information, see: https://github.com/junegunn/fzf'