eza-community / eza-themes

Themes for eza
MIT License
33 stars 3 forks source link

Theme in Windows #4

Open YagoMaia opened 4 weeks ago

YagoMaia commented 4 weeks ago

I would be very grateful if you could put the themes on windowns. I tried a few ways, but it didn't work.

BanHammerYKT commented 3 weeks ago

Just add EZA_CONFIG_DIR environment var and put theme.yml in

I use powershell, and in my case I add into $PROFILE.CurrentUserAllHosts file

$env:EZA_CONFIG_DIR = "$env:USERPROFILE\.config\eza"

Also I replaced ls built-in alias with this code

Remove-Item Alias:ls -Force; New-Alias ls eza
rizard1 commented 2 weeks ago

i'm a beginner i don't know lot about powershell can you show me step by step to add that config file at least with pictures.

BanHammerYKT commented 2 weeks ago
  1. firstly open powershell, the commands below paste to them
  2. create directory %userprofile%\.config\eza with this command: New-Item -ItemType Directory -Path "$env:USERPROFILE\.config\eza" -Force
  3. open explorer in created directory with this command: Start-Process explorer.exe "$env:USERPROFILE\.config\eza"
  4. download preferred theme yaml-file into created directory & rename to theme.yml
  5. open powershell config file with this command: notepad $PROFILE.CurrentUserAllHosts
  6. paste code below into opened config-file (warn, any code in this file execute on every powershell start)
    
    # set eza config directory
    $env:EZA_CONFIG_DIR = "$env:USERPROFILE\.config\eza"

optional

replace ls built-in alias with eza

Remove-Item Alias:ls -Force; New-Alias ls eza


8. restart powershell
9. profit!!!
<br><br><br><br>
<details>
  <summary>some screenshots</summary>

![powershell](https://github.com/user-attachments/assets/75381e79-9a45-4ed6-ba31-aa3b6d7de62e)
![notepad](https://github.com/user-attachments/assets/ba474503-7ec2-46e4-83d7-dbd27d8af013)
![explorer](https://github.com/user-attachments/assets/0d56ce2d-720e-4d2c-a264-76ccbb379aa9)

</details>