Commit d7bf5da4 authored by Dylan's avatar Dylan

Hardcode iterm2 mode to iterm2

parent ec9bfefb
...@@ -2803,6 +2803,13 @@ if [ "$image" != "off" ]; then ...@@ -2803,6 +2803,13 @@ if [ "$image" != "off" ]; then
# Hide the cursor # Hide the cursor
printf "\033[?25l" printf "\033[?25l"
# If iterm2 is detected use iterm2 backend.
if [ -n "$ITERM_PROFILE" ]; then
image_backend="iterm2"
else
image_backend="w3m"
fi
# Find w3mimgdisplay # Find w3mimgdisplay
[ "$image_backend" == "w3m" ] && \ [ "$image_backend" == "w3m" ] && \
[ "$image" != "ascii" ] && \ [ "$image" != "ascii" ] && \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment