Skip to content

use custom variable #5875

Nov 12, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

@og900aero environment variables are always strings (also in the shell), so you need to compare against a string:

"template":"{{ if eq .Env.LF_LEVEL \"1\" }}╭─(lf)─{{ else }}╭─{ end }}"

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@og900aero
Comment options

Answer selected by og900aero
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
2 participants