<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Mac on Ray Mah&#39;s Blog</title>
    <link>/tags/mac/</link>
    <description>Recent content in Mac on Ray Mah&#39;s Blog</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Tue, 06 Jan 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="/tags/mac/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Making Home and End Buttons Work Correctly on a Mac</title>
      <link>/posts/making-home-and-end-keys-work-right-on-a-mac/</link>
      <pubDate>Tue, 06 Jan 2026 00:00:00 +0000</pubDate>
      <guid>/posts/making-home-and-end-keys-work-right-on-a-mac/</guid>
      <description>&lt;p&gt;For the most part, using a Mac has been pretty easy after many years of using Windows.  One of the really annoying changes though was the way the Home and End keyboard keys work.  On a Mac they go to the start and end of the file rather than the line.  If you&amp;rsquo;re like me, this seems really silly.  To change it, do the following:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Open &lt;strong&gt;Terminal&lt;/strong&gt; (Cmd + Space, type &amp;ldquo;Terminal&amp;rdquo;).&lt;/li&gt;&#xA;&lt;li&gt;Create the KeyBindings directory by pasting this command:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-BASH&#34; data-lang=&#34;BASH&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;mkdir -p ~/Library/KeyBindings&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ol start=&#34;3&#34;&gt;&#xA;&lt;li&gt;Create and open the configuration file:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-BASH&#34; data-lang=&#34;BASH&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;nano ~/Library/KeyBindings/DefaultKeyBinding.dict&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ol start=&#34;4&#34;&gt;&#xA;&lt;li&gt;Paste the following code into the window:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;{&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &amp;#34;\UF729&amp;#34;  = &amp;#34;moveToBeginningOfLine:&amp;#34;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &amp;#34;\UF72B&amp;#34;  = &amp;#34;moveToEndOfLine:&amp;#34;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &amp;#34;$\UF729&amp;#34; = &amp;#34;moveToBeginningOfLineAndModifySelection:&amp;#34;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &amp;#34;$\UF72B&amp;#34; = &amp;#34;moveToEndOfLineAndModifySelection:&amp;#34;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ol start=&#34;5&#34;&gt;&#xA;&lt;li&gt;Press &lt;strong&gt;Ctrl + X&lt;/strong&gt;, then &lt;strong&gt;Y&lt;/strong&gt;, and &lt;strong&gt;Enter&lt;/strong&gt; to exit.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Restart your Mac&lt;/strong&gt; (or log out and back in) for the changes to take effect.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; The lines starting with &lt;code&gt;$&lt;/code&gt; handle &lt;strong&gt;Shift + Home/End&lt;/strong&gt;, allowing you to highlight the line just like on Windows.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Mapping an SMB Share on a Mac via Terminal</title>
      <link>/posts/mapping-smb-share-on-a-mac/</link>
      <pubDate>Tue, 23 Dec 2025 00:00:00 +0000</pubDate>
      <guid>/posts/mapping-smb-share-on-a-mac/</guid>
      <description>&lt;p&gt;To map an SMB share on a Mac via the terminal:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create a new folder to act as the mount point.  This is essentially a proxy for the folder on the remote machine.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-BASH&#34; data-lang=&#34;BASH&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;mkdir ~/share-home&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ol start=&#34;2&#34;&gt;&#xA;&lt;li&gt;Enter this command to link the new folder to the share.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-BASH&#34; data-lang=&#34;BASH&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;mount -t smbfs //user@share-host/share-name ~/share-home&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;user&lt;/code&gt;: your SMB user name on the machine hosting the SMB share.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;share-host&lt;/code&gt; : The IP address or network name of the SMB host machine.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;share-name&lt;/code&gt; : The name of the SMB share.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;~/share-home&lt;/code&gt; : The name of the folder we created in step 1.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;After that you can access the files in the share from the folder created in step 1.  Note that this is temporary and will not persist after a reboot.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
