mirror of
http://github.com/JaeUs3792/dotfiles
synced 2025-12-13 23:51:34 +09:00
powershell font install scripts
This commit is contained in:
21
scripts/install_fonts.ps1
Normal file
21
scripts/install_fonts.ps1
Normal file
@ -0,0 +1,21 @@
|
||||
pushd c:\tools
|
||||
|
||||
$a = "FiraCode","ComicShannsMono","Mononoki"
|
||||
|
||||
foreach($i in $a){
|
||||
curl -s https://api.github.com/repos/ryanoasis/nerd-fonts/releases/latest | grep "browser_download_url.*$i.zip" | cut -d : -f 2,3 | tr -d """" | wget -qi -
|
||||
}
|
||||
|
||||
|
||||
$files = Get-ChildItem .\*.zip
|
||||
mkdir Fonts
|
||||
foreach($file in $files){
|
||||
unzip -o $file -d .\Fonts
|
||||
}
|
||||
|
||||
cp Fonts\*.ttf c:\windows\fonts
|
||||
cp Fonts\*.otf c:\windows\fonts
|
||||
|
||||
popd
|
||||
|
||||
|
||||
6
scripts/update_trilium.ps1
Normal file
6
scripts/update_trilium.ps1
Normal file
@ -0,0 +1,6 @@
|
||||
$a = "FiraCode","ComicShannsMono","Mononoki"
|
||||
|
||||
foreach($i in $a){
|
||||
curl -s https://api.github.com/repos/ryanoasis/nerd-fonts/releases/latest | grep "browser_download_url.*$i.zip" | cut -d : -f 2,3 | tr -d """" | wget -qi -
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user