How to change screen resolution / scaling in macOS

By  •  macOS

You’ll have to enable display scaling to get more of your screen’s real estate of your in macOS. Follow these steps to change the screen resolution or scaling option;

  1. Open System Preferences from the Apple menu at the top left of the screen.
  2. Select Displays.
  3. The default resolution is supposedly set here.
  4. Click on the Scaled radio button and choose your preferred scaled resolution.
  5. Below is a comparison between the default resolution and when selecting More Space option.

How to avoid [Process completed] message when exiting Terminal session in macOS

By  •  macOS

You will get the following [Process completed] message when exiting the session in Terminal and will have to manually close the Terminal windows afterwards.

Saving session...completed.

[Process completed]

Follow these steps to avoid the message and let the window automatically close.

  1. Open the Preferences window from the menu.
  2. Go to the Profiles tab and choose the profile that you want to set this option on.

    Basic is the default profile and it’s safe to just select it if you can’t remember ever changing the profiles settings.

  3. Click on the Shell tab and find the When the shell exits option.
  4. Choose Close if the shell exited cleanly from the option’s select list.

How to prevent Virtual Desktops / Spaces from rearranging in macOS

By  •  macOS

If you use Virtual Desktops or Spaces in macOS then you’ll notice that their arrangements often times change. This is because macOS by default sets to automatically rearrange Spaces by recent use. While this could be useful to some, it could get frustrating if it disrupts the flow of your work.

You can prevent this from happening and lock the arrangement by setting it up from Mission Control‘s preferences as the following;

  1. Open System Preferences from the Apple menu.
  2. Click on Mission Control.
  3. Notice that Automatically rearrange Spaces based on most recent use is enabled.
  4. Untick the checkbox for the option, and your Virtual Desktops / Spaces should no longer re-arrange by itself.

How to run DOS program in macOS with DOSBox

By  •  macOS

You can still run your old DOS programs right from macOS without having to poweroff your machine and boot up from your MS-DOS diskette by following these steps;

  1. Install Homebrew from the terminal.

    $ /usr/bin/ruby -e "$(curl -fsSL"
  2. Install DOSBox via homebrew.

    $ brew install dosbox
  3. Run your program’s executable from DOSBox.

    $ dosbox Downloads/Golden Axe/GOLD.EXE
    DOSBox version 0.74
    Copyright 2002-2010 DOSBox Team, published under GNU GPL.
    CONFIG: Generating default configuration.
    Writing it to /Users/username/Library/Preferences//DOSBox 0.74 Preferences
    CONFIG:Loading primary settings from config file /Users/username/Library/Preferences//DOSBox 0.74 Preferences
    MIDI:Opened device:coreaudio

    You can download old DOS programs from sites such as Abandonia

How to enable bash completion in macOS

By  •  macOS

Some Linux distributions such as Ubuntu comes with Bash completion by default. That enables auto-completion of application parameters rather than just the application names at the Bash terminal by pressing the tab key.

The functionality is provided by bash-completion program and it’s not a standard feature in macOS. You’ll have to do it via Homebrew (a third-party package manager for macOS) by following these steps;

  1. Install Homebrew

    $ /usr/bin/ruby -e "$(curl -fsSL"
  2. Install bash-completion via Homebrew

    $ brew install bash-completion
  3. Enable bash-completion

    $ . /usr/local/etc/bash_completion

To automatically enable bash completion when launching a new shell, add this to your ~/.bashrc or ~/.bash_profile

[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion

How to sort folder first for Finder in macOS

By  •  macOS

Finder by default lists directory contents alphabetically regardless of whether it is a file or a folder. This could be confusing for some especially if you’re coming from Windows or Linux environment where folder is listed first before files.

Finder can however be configured to list folder first with the following steps;

  1. Open Finderpreferences from the menu.
  2. Go to the Advanced tab.
  3. Check the keep folders on top when sorting by name.

Finder by default sort its listing by name disregard of whether organising by