summaryrefslogtreecommitdiff
path: root/bin/icat
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2022-02-03 14:39:21 +0100
committerMarc Vertes <mvertes@free.fr>2022-02-03 14:39:21 +0100
commit70375b4962152133c0423115427d7eaa006822d6 (patch)
treed5608c6638f202ff17566fce60b5460da1d26304 /bin/icat
parent053556962bb2d29ac76bcca51cabd1df238f80e3 (diff)
parente200c8d78ca1d3388c25c1cef8892b1dd015bbf7 (diff)
update
Diffstat (limited to 'bin/icat')
-rwxr-xr-xbin/icat2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/icat b/bin/icat
index 0170513..d363e09 100755
--- a/bin/icat
+++ b/bin/icat
@@ -2,6 +2,8 @@
# Display images directly in terminal.
# Tested with xterm v361. Depends on imagemagick convert(1).
+[ "$LC_TERMINAL" = iTerm2 ] && [ -x "$HOME/.iterm2/imgcat" ] && exec "$HOME/.iterm2/imgcat" "$@"
+
# maxsize prints the geomtry size of terminal window, with
# a maximum value of 1000 pixels for width and height, or
# 640x480 if terminal size can not be probed.