Hardcode iterm2 mode to iterm2

This commit is contained in:
Dylan 2016-03-30 10:20:06 +11:00
parent ec9bfefbf3
commit d7bf5da48e
1 changed files with 7 additions and 0 deletions

View File

@ -2803,6 +2803,13 @@ if [ "$image" != "off" ]; then
# Hide the cursor
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
[ "$image_backend" == "w3m" ] && \
[ "$image" != "ascii" ] && \