Skip to content

Instantly share code, notes, and snippets.

@nanoDBA
Created September 10, 2021 21:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nanoDBA/e1cc715c40d389f40eeb46d4a1e61809 to your computer and use it in GitHub Desktop.
Save nanoDBA/e1cc715c40d389f40eeb46d4a1e61809 to your computer and use it in GitHub Desktop.
Install Powerline fonts from GitHub - requires git be installed
<# 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