mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-23 20:12:31 +00:00
Hardcode iterm2 mode to iterm2
This commit is contained in:
7
neofetch
7
neofetch
@@ -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" ] && \
|
||||||
|
|||||||
Reference in New Issue
Block a user