There are multiple solutions to this, and you can find more information here if you are interested. Add the following to your .zshrc or .zsh_profile. # Load version control information autoload -Uz vcs_info precmd () { vcs_info } # Format the vcs_info_msg_0_ variable zstyle ':vcs_info:git:*' formats '%b' # Set up the prompt (with git branch
The .zshrc file is not present by default sometimes, we need to create it. Steps for creation: Open Terminal -> type touch ~/.zshrc to create the respective file.
I recently followed the steps to install jENV and Corretto-8. Unfortunately now whenever I open a new terminal I see the following: Last login: XXXXXXX /Users/username/.zshrc: command not found: je
Follow these steps: Find the .zshrc file. Right-click Finder -> Go to Folder -> In the "Go to Folder" dialog box, enter ~ and go, this will take you to your home folder. You could find the .zshrc here. Since it is a hidden file, you may need to type ('Command' + 'Shift' + '.' to reveal them. Edit the .zshrc file.
Thanks for sharing. I improved my .zshrc a lot since I saw this post. As I use my .zshrc on different machines I implemented an update before the edit. And as I search for quite often for some strings inside of files I wrote a "find in files" function
id8Tov.