fenetikm / falcon

A colour scheme for terminals, Vim and friends.
MIT License
718 stars 25 forks source link

Add falcon json theme file for Windows Terminal #48

Closed jantari closed 2 years ago

jantari commented 2 years ago

Hi,

just found this theme and thought I'd add support for the Windows Terminal - it's the default terminal on Windows 11 and an optional install on Windows 10.

Settings files use JSON, there is a one per-user settings file and it is extensible via "fragments". See documentation.

This JSON file is such a fragment, so that a user can copy it to their machine as-is and it will be picked up and merged with their main config immediately, so that there is no need for them to edit their main configuration file to "install" this theme.

The installation instructions for this would be:

# Adding the theme for the current user
New-Item -Path "${env:LocalAppData}\Microsoft\Windows Terminal\Fragments\falcon" -ItemType Directory
Copy-Item .\windowsterminal\falcon.json -Destination "${env:LocalAppData}\Microsoft\Windows Terminal\Fragments\falcon\"

# Adding the theme for all users of the computer (requires Administrator)
New-Item -Path "${env:ProgramData}\Microsoft\Windows Terminal\Fragments\falcon" -ItemType Directory
Copy-Item .\windowsterminal\falcon.json -Destination "${env:ProgramData}\Microsoft\Windows Terminal\Fragments\falcon\"
fenetikm commented 2 years ago

Thanks @jantari - looks great!