-
Notifications
You must be signed in to change notification settings - Fork 72
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
Look for .zshrc in ZDOTDIR if defined #71
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #71 +/- ##
======================================
Coverage 90.2% 90.2%
======================================
Files 14 14
Lines 858 858
======================================
Hits 774 774
Misses 75 75
Partials 9 9 Continue to review full report at Codecov.
|
cmd/install/install.go
Outdated
func zshrcPath() string { | ||
if zDotDir := os.Getenv("ZDOTDIR"); zDotDir != "" { | ||
f := filepath.Join(zDotDir, ".zshrc") | ||
if info, err := os.Stat(f); err != nil || !info.IsDir() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
err == nil && !info.IsDir()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is completely wrong. Updated it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
Thanks for this change.
Did you check it with this sort of folder?
Thanks
@eikaas since we don't have any tests here, I will only merge it if you tested the change manually. |
Any chance of getting this conflict resolved and the fix merged? |
Mimics the default behavior of zsh