JanDeDobbeleer / aliae

Cross shell and platform alias management
https://aliae.dev
MIT License
73 stars 3 forks source link

Empty response for powershell env vars #110

Closed kdpuvvadi closed 2 months ago

kdpuvvadi commented 2 months ago

Code of Conduct

What happened?

in env block adding global env vars resulting in empty response.

env:
  - name: USER_NAME
    value: $ENV:USERNAME
    if: match .Shell "pwsh"

This works

but

env:
  - name: ALIAE_CONFIG
    value: C:\Users\$($ENV:USERNAME)\.aliae.yaml
    if: match .Shell "pwsh"

this resulting in C:\\Users\\\\.aliae.yaml

is this even supported?

What OS are you seeing the problem on?

Windows

Which shell are you using?

powershell

kdpuvvadi commented 2 months ago

Nevermind. Should've followed templating.