Rabi Siddique
485 words
2 minutes
Setting Up Mac
2024-07-29

So far what I’ve done today:

  • Set up selecting text and dragging things using three fingers. Also figured out how to do it without three fingers: go to System Settings -> Accessibility and then check TrackPad settings. At night, I found that this was a setting called Drag lock.
  • Installed gh using brew. Followed this link to set up my GitHub account on the terminal.
  • Installed nvm from here. Installed relevant versions of Node.js. Also installed yarn and pnpm globally.
  • The code command was not working in the terminal, so I had to follow this post to set it up.
  • Installed golang from here. Disappointed why I can’t do these thingsin%20Dock.). The shortcuts I’ve created so far are flaky because if I open an app, the custom shortcuts tend to act as shortcuts in the opened app. Hence the flakiness. from the terminal. Curious to understand the difference between source, archive, and installer.
  • Set up VS Code Launch shortcut after making it available in the applications following [this link](https://code.visualstudio.com/docs/setup/mac#:~:text=Drag%20Visual%20Studio%20Code.app,choosing%20Options%2C%20Keep%20
  • I was able to set my VS Code shortcuts.
  • I can change my default shell using this commad:chsh -s /bin/bash.
  • Was able to setup code command of vs-code, following this link.
  • Added my aliases in my .bash_profile.
  • I discovered that using Cmd + Shift + 4 allows you to take a screenshot of any selected area on the screen. With Cmd + Shift + 3, you can capture the entire screen. By default, these screenshots are saved to the Desktop. However, if you want the screenshots to be copied to the clipboard instead, press Control in addition to the Cmd key. I changed the shortcuts for clipboard, to omit pressing Cmd.
  • Finally, able to eliminate flakiness of custom shortcuts for opening my most used app by installing Hammerspoon. Had to place this script in my ~/.hammerspoon/init.lua:
hs.hotkey.bind({"alt"}, "1", function()
    hs.execute("open -a 'Terminal'")
end)

hs.hotkey.bind({"alt"}, "2", function()
    hs.execute("open -a 'Google Chrome'")
end)

hs.hotkey.bind({"alt"}, "3", function()
    hs.execute("open -a 'Visual Studio Code'")
end)

hs.hotkey.bind({"alt"}, "4", function()
    hs.execute("open -a 'Slack'")
end)

  • From shortcuts in System Settings => KeyBoards => LaunchPad & Dock, I changed the shortcut to hide and show the Dock with Ctrl + Cmd + Space.
  • I’ve setup Window Management Shortcuts using Hammerspoon.
  • I successfully set up Hammerspoon to run at startup. I used Spotlight (Command + Space) to search for “Login Items” and added Hammerspoon to the list. Now, Hammerspoon launches automatically, so I no longer need to open it manually to ensure my shortcuts are working.
  • Using Iterm2. Made some basic settings and setup some basic shortcuts.
  • I discovered that pressing Ctrl + Down Arrow reveals all open windows for the current app, while pressing Ctrl + Up Arrow displays all open windows across all apps. There is shortcut as well to do this which allows to switch between the windows of an swiftly, that is Cmd + BackTick.
  • Was able to increase cursor speed by adjusting Key Repeat Rate and Delay Until Repeat in Keyboard settings.

Things left to do:#

  • iterm2 shortcut for switching tabs
Setting Up Mac
https://rabisiddique.com/posts/setting-up-mac/
Author
Rabi Siddique
Published at
2024-07-29