Skip to content

Commit 4bb43ea

Browse files
authored
ImageMagick for kitty icat
Automatically download ImageMagick(magick) in terminal is kitty for icat support
1 parent 3860335 commit 4bb43ea

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

install.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ if [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then
2727
fi
2828
fi
2929

30+
# Installing imgcat if using kitty
31+
if [[ "$TERM" == "xterm-kitty" ]]; then
32+
if [[ ! $(which magick) ]]; then
33+
curl -sS https://imagemagick.org/archive/binaries/magick -o /usr/local/bin/magick
34+
chmod +x /usr/local/bin/magick
35+
echo "Installed magick"
36+
fi
37+
fi
38+
3039
# Installing chatgpt script
3140
curl -sS https://raw.githubusercontent.com/0xacx/chatGPT-shell-cli/main/chatgpt.sh -o /usr/local/bin/chatgpt
3241

0 commit comments

Comments
 (0)