Created
September 10, 2021 21:54
-
-
Save nanoDBA/e1cc715c40d389f40eeb46d4a1e61809 to your computer and use it in GitHub Desktop.
Install Powerline fonts from GitHub - requires git be installed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# clone latest master #> | |
$gitHubLink = "https://github.com/powerline/fonts.git" | |
$gitHubFolderName = (split-path $gitHubLink -Leaf).Replace('.git','') | |
$targetFolder = "$env:USERPROFILE\downloads\Repos\$gitHubFolderName" | |
<# *** This path and all subdirs are about to be deleted - Are you sure? *** #> | |
If(Test-Path $targetFolder) {Remove-Item -Recurse -Force $targetFolder\* -Confirm} | |
If(!(Test-Path $targetFolder)) {mkdir $targetFolder } | |
git clone -b master $gitHubLink $targetFolder | |
Invoke-Item $targetFolder | |
. "$($targetFolder)\install.ps1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment