The profile file is the best place defile all your commands or variables that you want to initialise before you open the terminal,
If you are using the Zsh on macOS, you need to create the .zshrc file manually at /Users/username location, when a new session is open the .zshrc profile is loaded,
% nano ~/.zshrc
If you want to load the profile at login you need to make use of .zprofile
% touch ~/.zprofile
This should work on macOS and Ubuntu

Zsh profile
More Posts related to MacOS,
- Opening mac Terminal
- How to change default macOS Terminal Window size
- How to clear Mac Terminal screen
- Find Hostname of Mac running on macOS Ventura 13
- Installing MongoDB on Linux/Unix/macOS/Ubuntu
- How to switch from bash to zsh shell in macOS Terminal
- Limit scrollback rows in macOS Terminal
- How to Set Background Wallpaper on macOS 13 Ventura
- This operation couldnt be completed. Unable to locate a Java Runtime. [macOS]
- Encode or Decode Base64 String using Mac Terminal Command
- List of All Apple Silicon ARM Based M1/M2 Mac [updated Oct 2022)
- How to remove Siri from Menu Bar [macOS Big Sur]
- Must Know Homebrew Commands for Mac/Linux Users
- Hide Keyboard Text Input Icon on macOS Ventura Menu Bar
- 13.0 MacOS Ventura release date
- How to change the default location of Mac Screenshot
- How to set Out Of Office (OOO) on Outlook for Mac
- 30+ Zoom video communications application shortcuts for macOS
- How to install wget on macOS
- Mac turn dark mode on or off using terminal command
- Create Symbolic Link using Terminal Command
- Mac - How to Install VirtualBox
- How to Enable or Disable Dark Mode on macOS Ventura 13
- How to install homebrew (brew) on M1 Mac
- How to uninstall Microsoft Outlook on Mac
More Posts:
- How to Identify installed PowerShell version - Powershell
- How to stop/start/restart apache server using command [Ubuntu] - Ubuntu
- Your Android SDK is out of date or is missing templates. Please ensure you are using SDK version 22 or later. - Android
- How to Manage Profile Picture on Microsoft Teams - Teams
- Failed to load resource: net::ERR_CACHE_MISS PHP - PHP
- How to add or remove bookmark on a line in Notepad++ - NotepadPlusPlus
- Java Join Strings with Comma Separator - Java
- Spotlight Search Mac Keyboard Shortcut - MacOS