Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

@wesbos 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

This comment has been minimized.

Copy link

@davecarter davecarter commented Feb 19, 2016

Great! Thanks for sharing 👍

@rjpcasalino

This comment has been minimized.

Copy link

@rjpcasalino rjpcasalino commented Feb 23, 2017

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

@Barbery

This comment has been minimized.

Copy link

@Barbery Barbery commented Aug 23, 2018

thank you!

@ytyng

This comment has been minimized.

Copy link

@ytyng 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

This comment has been minimized.

Copy link

@sarnobat 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

This comment has been minimized.

Copy link

@rhartzell rhartzell commented Feb 20, 2021

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