Conditionals in lfrc? #1404
-
So I want to enable sixel only for terminals which support it, is there any way to do something like if [[ "$TERM" = foot || -n "$KONSOLE_VERSION" ]]; then
set sixel
fi Is there any way I can do that? |
Beta Was this translation helpful? Give feedback.
Answered by
michaelferon
Aug 31, 2023
Replies: 1 comment 2 replies
-
I think the following would work in your &{{
if [[ "$TERM" = foot || -n "$KONSOLE_VERSION" ]]; then
command lf -remote "send $id :set sixel"
fi
}} By not attaching the command to a |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Lassebq
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think the following would work in your
lfrc
:By not attaching the command to a
cmd
statement, it will run automatically at startup.