Follow

If you love working on the command-line as much as I do, you may like what I have been working on recently!

Meet glow - a stylish viewer for your shell:

github.com/charmbracelet/glow

@fribbledom fuck yes thank you for this I've been looking for one for note-taking

@fribbledom I'm going to have to give that a good look. I keep meaning to make a post about how much I really like markdown right now :)

@fribbledom what's the charm thing at the bottom of the readme?

@pry

Try it out 😆

We're working on making life on the command-line just a bit more awesome. News to be shared soon!

@quinnbelievesinyou

Bad timing, just upgrading. Try again in 5 minutes please 💪

@fribbledom Baby Linux user question

I use Ubuntu so I have to use the .tar.gz release. But, I do not know what I am suppose to do with it.

How do I connect the contents of that archive to my shell so I can run it?

@dualhammers

You could try and just install the debian package, it should work on Ubuntu, too.

For the .tar.gz, simply extract its contents (not unlike a ZIP archive): it contains one binary file called `glow` which you can simply put in /usr/local/bin or /usr/bin to make it globally available in your shell.

@fribbledom Looks like you don't have a .deb for x86_64?

I will extract it there. Thank you

@fribbledom Works great! Always wanted something like this. 👍

@fribbledom I like it. Thank you very much for taking the time to develop glow!
Is it possible to pipe the output in less and keep the colors?

@fribbledom I found a solution using `unbuffer` (see this post: superuser.com/a/1132741). The command looks like this `unbuffer glow Readme.md | less`. Still I think it would be great if it would be possible with a command line flag in glow such that the command `glow --some-flag | less` would preserve the colors.

@dotcs

If you specify a style manually, it will stick to that, e.g.:

glow -s dark | less -r

@fribbledom Nice, I've been using mdv so far. Would be nice to have this in . :)

@CyReVolt

We'll try to add FreeBSD builds to the next release!

@fribbledom Would you consider adding a port so it's easier to install and get updates? I would also looked into it, have written a few ports so far and some Go-based ebuilds for Gentoo. I just don't know what FreeBSD offers for Go so far. I can happily tell that I could go get and build glow from source. :)

@fribbledom @CyReVolt

Awesome. I've managed to package up glow without any issue; would you like me to submit this port? As per standards it'll wait for review and *should* be merged.

@lcook

Awesome, that would be great! Do you keep the package/port metadata in a repository somewhere?

@CyReVolt

@fribbledom @CyReVolt

Once the port is merged into the FreeBSD ports tree, it's a case of running 'pkg install glow'—although it's not instant. The package itself will probably take around ~1 week before it's made available for everyone.

Sign in to participate in the conversation
Mastodon

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!