Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify prompt declaration in .zshrc, not .zlogin #221

Closed
geoffharcourt opened this issue Jan 27, 2014 · 2 comments
Closed

Specify prompt declaration in .zshrc, not .zlogin #221

geoffharcourt opened this issue Jan 27, 2014 · 2 comments

Comments

@geoffharcourt
Copy link
Collaborator

Related to #214. Because .zlogin loads later in the load path than .zshrc, it is difficult to override the prompt with your own custom prompt.

Also, .zlogin only loads for login shells. Doesn't it make sense to load the prompt in .zshrc so that it's available for non-login, interactive shells?

It looks like both of these issues (overridability, making custom prompts available in non-login shells) could be resolved if the prompt line at https://github.com/thoughtbot/dotfiles/blob/master/zlogin#L20 in .zlogin could be moved to .zshrc. PR #214 fixes the overridability issue, but requires declaring the override prompt in two places (.zshrc and .zlogin.local) if you wish to have a custom prompt for non-login shells.

@mikegee
Copy link
Contributor

mikegee commented Jan 30, 2014

+1

When I merged the latest changes a while back, I had to change my shell in iterm from just zsh to zsh --login Just to fix my prompt.

@geoffharcourt
Copy link
Collaborator Author

It looks like this was implemented by @gylaz in 7007a86. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants