kind of cool but in the end, you need to open your browser anyway !!
echo 'open location "http://my.domain.com/some/file.html"' | osascript11–20 of 28 posts
kind of cool but in the end, you need to open your browser anyway !!
echo 'open location "http://my.domain.com/some/file.html"' | osascriptI tried it on CentOS (RHEL) 5.6 [admin@gold admin]# hackernews sed: invalid option -- E [admin@gold admin]# sed --version GNU sed version 4.1.5
When you say "If you're terminal is awesome, you can ⌘-click on the links to open them in a browser.", what kind of awesome do I need? I'm running plain old terminal on OS X. (oh, and not to be picky, but that should be "your", not "you're")
When you say "If you're terminal is awesome, you can ⌘-click on the links to open them in a browser.", what kind of awesome do I need? I'm running plain old terminal on OS X. (oh, and not to be picky, but that should be "your", not "you're")
I tried it on CentOS (RHEL) 5.6 [admin@gold admin]# hackernews sed: invalid option -- E [admin@gold admin]# sed --version GNU sed version 4.1.5
Changing "sed -E" to "sed -r" and all instances of "==" to "=" makes this script run on my Debian system. Unfortunately, it leaves the terminal blue when it is done.
echo "\033[0m"
Also, I believe Debian's /bin/sh is "dash" whereas it is "bash" on most other systems. You could change your copy of the script's header to use "/bin/bash" instead of "sh" (assuming that bash is installed too), which is easier than fixing equal-signs and such.As far as the original code is concerned, using "perl" may be slightly more portable than "sed -E".
Certainly a nice way to follow HN, the only advantage with the website, it to have gray links on already visited links. That's mainly why I don't use it anymore.
blue_highlight=`echo "\033[0;38;5;68m"`
brown_highlight=`echo "\033[0;1;38;5;202m"`
. . .
. . . (end of script)
echo "\033[0m"