use custom variable #5875
Answered
by
JanDeDobbeleer
og900aero
asked this question in
Troubleshoot
-
Hello, For file manager I use lf file manager. It has a $LF_LEVEL variable, which I used in .bashrc: Now that I am using oh my posh, how can I set this? I tried the below but I get an error message:
|
Beta Was this translation helpful? Give feedback.
Answered by
JanDeDobbeleer
Nov 12, 2024
Replies: 1 comment 1 reply
-
@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 }}" |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
og900aero
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
@og900aero environment variables are always strings (also in the shell), so you need to compare against a string: