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

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

commented Feb 19, 2016

Great! Thanks for sharing 👍

@vexhack

This comment has been minimized.

Copy link

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

commented Aug 23, 2018

thank you!

@ytyng

This comment has been minimized.

Copy link

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

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.