You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Developer Forums relocated!

Need help with Apple Developer tools and technologies? Want to share information with other developers and Apple engineers? Visit Developer Forums at Apple.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to create Home directory in Z Shell

Being an absolute newbie to zsh, I have not been able to a create a Home directory .


When I look at my Home folder in Finder, it appears as just another folder. When I look at zhs tutorials, the Home folder appears as a graphic Home symbol.


In man zshroadmap, I see the following command to use if no personal initialization files exist.


`autoload -Uz zsh-newuser-install; zsh-newuser-install -f'


Never having done this before, I'm a little hesitant to just go ahead and try the command without some confirmation that it is the right thing to do.


Thanks for any response.



MacBook Pro 15″, 12.6

Posted on Feb 27, 2023 6:54 AM

Reply
Question marked as Top-ranking reply

Posted on Mar 1, 2023 6:17 PM

BillyBoyS41 wrote:

Being an absolute newbie to zsh, I have not been able to a create a Home directory .

You don't need to create a home directory. You already have one.

When I look at my Home folder in Finder, it appears as just another folder.

And so it is. However, zsh is a shell environment. If you are a newbie, then you'll just get confused trying to go back and forth between the graphical and the command line environment. It is better to stick to the command line and learn that environment. Use "ls" to list files. use "ls -al" to see all files, including the hidden ones.

When I look at zhs tutorials, the Home folder appears as a graphic Home symbol.

Any zsh tutorial that has any graphics information should be avoided.

In man zshroadmap, I see the following command to use if no personal initialization files exist.

`autoload -Uz zsh-newuser-install; zsh-newuser-install -f'

Don't do that.

Never having done this before, I'm a little hesitant to just go ahead and try the command without some confirmation that it is the right thing to do.

Good call.


When you do "ls -al", you should see your dot files like ".zshrc". You can edit that with "vi". Don't use other tools like "nano", "emacs", or anything like that. Learn and use vi.


Later on, you can use BBEdit and start using both graphical and command-line tools at the same time.

Similar questions

6 replies
Question marked as Top-ranking reply

Mar 1, 2023 6:17 PM in response to BillyBoyS41

BillyBoyS41 wrote:

Being an absolute newbie to zsh, I have not been able to a create a Home directory .

You don't need to create a home directory. You already have one.

When I look at my Home folder in Finder, it appears as just another folder.

And so it is. However, zsh is a shell environment. If you are a newbie, then you'll just get confused trying to go back and forth between the graphical and the command line environment. It is better to stick to the command line and learn that environment. Use "ls" to list files. use "ls -al" to see all files, including the hidden ones.

When I look at zhs tutorials, the Home folder appears as a graphic Home symbol.

Any zsh tutorial that has any graphics information should be avoided.

In man zshroadmap, I see the following command to use if no personal initialization files exist.

`autoload -Uz zsh-newuser-install; zsh-newuser-install -f'

Don't do that.

Never having done this before, I'm a little hesitant to just go ahead and try the command without some confirmation that it is the right thing to do.

Good call.


When you do "ls -al", you should see your dot files like ".zshrc". You can edit that with "vi". Don't use other tools like "nano", "emacs", or anything like that. Learn and use vi.


Later on, you can use BBEdit and start using both graphical and command-line tools at the same time.

Feb 27, 2023 8:54 AM in response to BillyBoyS41

Finder will show the home folder as a home symbol in some contexts (left nav bar, particularly), but it is an ordinary folder on macOS. And Finder is not particularly integrated with zsh or any other shell. Not past double-clicking on certain-named shell scripts to execute them, or dragging files or folder icons into Terminal.app to transfer the path, that is. Some zsh doc will show Linux or other systems’ icons, as well.


I’ve never bothered to specifically run any initialization scripts for zsh (and my home folder is, well, ancient), only adding the zsh “dot” (“hidden”) scripts (.zshrc, .zprofile, etc) and zsh settings as needed. In macOS Finder, use the Command-Shift-Period toggle to show or hide these and other hidden files.


If you want to see what that script does, here it is:

https://github.com/zsh-users/zsh/blob/master/Functions/Newuser/zsh-newuser-install


You can test that zsh install script with a newly-created macOS login. After creating the new login, login to it and open Terminal.app, and then invoke the script there.then have a look at the generated .zshrc script. I would not expect that to then alter what Finder shows, either.


Given it only claims to modify .zshrc, after testing in a throw-away login, you can move your .zshrc and related files aside, run it, and merge the results as needed.


Some related reading: https://apple.stackexchange.com/a/361957

Mar 2, 2023 4:18 AM in response to etresoft

Thank you for the detailed yet succinct response. Being retired, I am in no big hurry to master everything.


I think the best path forward for me is to focus on program documentation. I plan to better understand how to use the 'man' command in Terminal. I will take your advice and learn a little more about 'vi'. BBEdit sounds like another tool I will explore.


My focus now is a better understanding Z shell and git. I watch a few YouTube videos to get the hang and then turn to documentation. It's kind of a slow go for me, but little by little, some of it kind of sticks in this old brain.


I have a basic understanding of html, css, javascript, node and learned a little SQL in college back in the '80s. Trying to make forms and get them connected to the database seems to be my nemesis. However, I really enjoy the challenge of trying to figure it all out.


I really appreciate your help. Thanks again.

How to create Home directory in Z Shell

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.