Fish function to read webpage in Terminal

I’m really digging reading web posts in the terminal.

After using it for some time, I realized that typing same arguments after the URL (That I usually copied to the clipboard from some other place) is getting cumbersome.

So I created a fish function out of it (If you see yourself doing the same task over and over, it is a good place to automated it)

Here is the simple function

function readweb
      readable $argv | w3m -T text/html
  end

Now save it to a file, to reuse it.

➜ functions readweb > ~/.config/fish/functions/readweb.fish

Just paste the URL after typing readweb, and hit RET 🎉

➜ readweb https://microblog.desipenguin.com

Reference