![]() ![]() In case you changed the prompt permanently, and you’d like to go back to the default prompt: simply delete te file ~/.zshrc. Note: You can edit the file with a plain text editor, for example nano (in Terminal), TextEdit (comes with macOS) or a third party text editor like BBEdit (my favorite – you can use it for free, or get the commercial version which offers some extra features you may not ever need). Next time you open a new Terminal session, this file will be read and the prompt will right away be the way you liked it. In this file, we can save the statement we used to change our Z-Shell prompt. Note: Since this filename starts with a period, this file will be hidden by default and applications like Finder may not show them. zshrc in your home directory ( ~) – which by default does not exist. The Z-Shell, when started, will look for a file called. Like I said: great for testing, and maybe great for particular tasks. However when you close Terminal and start a new Terminal session, you’ll see your old prompt again, and not the prompt we just defined. When entering this and pressing Enter, you’ll see the effect right away.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |