<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hacker News: bhal</title><link>https://news.ycombinator.com/user?id=bhal</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Sat, 10 Oct 2026 08:05:09 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=bhal" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by bhal in "macOS command-line tools you might not know about"]]></title><description><![CDATA[
<p>Great list, working with Mac a long time and found some good things here. This might be useful too:<p># cd to frontmost open finder folder (in Terminal cd to the current top finder window)
cdf() { cd "`osascript -e 'tell app "Finder" to POSIX path of (insertion location as alias)'`"; pwd; }<p># Copy the frontmost open finder folder Path from Terminal to the Clipboard in MacOS: 
cpf() { echo "`osascript -e 'tell app "Finder" to POSIX path of (insertion location as alias)'`"|pbcopy; }<p># open manpage in preview app: 
pman() { mandoc -T pdf "$(/usr/bin/man -w $@)" | open -fa Preview; }<p># Function to delete a given line in ssh known_hosts file:
xho() { line=$1;tFile="$HOME/.ssh/known_hosts";sed -e "${line}d" -i ".tmp" "$tFile";}</p>
]]></description><pubDate>Fri, 07 Jul 2023 15:17:56 +0000</pubDate><link>https://news.ycombinator.com/item?id=36633029</link><dc:creator>bhal</dc:creator><comments>https://news.ycombinator.com/item?id=36633029</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=36633029</guid></item></channel></rss>