JanDeDobbeleer / aliae

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

feat: if improvements #111

Open kiliantyler opened 2 months ago

kiliantyler commented 2 months ago

Prerequisites

Main new features

Ifs

This allows If to be a string as it currently is:

alias:
  - name: hello
    value: world
    if: eq .Shell "zsh"

But also allows it to be a list:

alias:
  - name: hello
    value: world
    if:
      - eq .Shell "zsh"
      - match .User "root"

slim-sprig

This incorporates slim-sprig template functions into templates. The slim version was chosen since most of the features in the full version that are missing are expensive and unneeded.

New runtime variables

Additional changes