Hiero
Hiero

Reputation: 2205

Can't find .zshrc file

Recently I installed someone else .dotfiles and as excepted overwrited my configuration.

The thing is that I want to use my custom settings for my ZSH but I can't find .zshrc inside ~/, I have other .zshrc.files but editing none of these is working.

enter image description here

Also the dotfiles I've installed are in `~/.dotfiles but seems that none of these contains config.

enter image description here

Can someone please explain me how to edit the ZSH now, can I revert my old .zshrc?

Upvotes: 5

Views: 16106

Answers (2)

tiw
tiw

Reputation: 565

Maybe try creating one yourself?

My Mac didn't come with the .zshrc file specific for my user, so I had to create one.

  • Open terminal from Applications -> Utilities
  • Go to your home folder by typing cd ~
  • Type command: touch .zshrc and press Return

You can now open this file either from finder or terminal.

To view it on Finder:

  • Open Finder and go to your Home folder
  • If you are not seeing hidden files: press COMMAND + SHIFT + . This will help you view hidden files.

To open via Terminal:

  • type open .zshrc

Now you can edit it and save COMMAND+ S

If you have added aliases to use as shortcut commands, you have to re-start your Terminal to be able to use them.

Upvotes: 0

Gabriel Quevedo
Gabriel Quevedo

Reputation: 31

  • Go to home directory typing cd
  • Type the command zsh and Press Enter
  • Select the option (2) Populate your ~/.zshrc with the configuration recommended by the system administrator and exit (you will need to edit the file by hand, if so desired).

(You have to type "2" to select it and press enter)...

then all the files will be created on the directory..

Upvotes: 3

Related Questions