Skip to content

Instantly share code, notes, and snippets.

@wesbos
Last active October 20, 2023 00:48
Show Gist options
  • Star 35 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save wesbos/eac5f93478002312db1f to your computer and use it in GitHub Desktop.
Save wesbos/eac5f93478002312db1f to your computer and use it in GitHub Desktop.
sudo curl -o /usr/local/bin/imgcat -O https://raw.githubusercontent.com/gnachman/iTerm2/master/tests/imgcat && sudo chmod +x /usr/local/bin/imgcat
# If you have a better way to fix the permissions, comment below!
@wesbos
Copy link
Author

wesbos commented Feb 19, 2016

Even though its not a JS module, apparently it's on npm too! so just npm install imgcat -g

@davecarter
Copy link

Great! Thanks for sharing 👍

@rjpcasalino
Copy link

And if you care to you can also syslink it: ln -s /usr/local/bin/imgcat imgcat

@Barbery
Copy link

Barbery commented Aug 23, 2018

thank you!

@ytyng
Copy link

ytyng commented Dec 25, 2018

Thank you, but

https://raw.githubusercontent.com/gnachman/iTerm2/master/tests/imgcat
content is

# moved to https://iterm2.com/utilities/imgcat

We can use
sudo curl -o /usr/local/bin/imgcat -O https://iterm2.com/utilities/imgcat && sudo chmod +x /usr/local/bin/imgcat

https://iterm2.com/documentation-images.html

@sarnobat
Copy link

sarnobat commented Sep 3, 2019

Thank you very much for the updated command ytyng. I would have given up when the first command wasn't working.

The only problem with imgcat over ssh is that we don't get all those nice command line options like we do on Mac. Still, this is the best thing to happen to the terminal in years.

@rhartzell
Copy link

I love it! Thank you for the gist!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment