-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
install: use .bashrc
and notify user
#2039
base: master
Are you sure you want to change the base?
Conversation
e72e72e
to
e2f1ce3
Compare
1212ec9
to
a45c914
Compare
c742a5d
to
d718669
Compare
18196a6
to
1bcc3f4
Compare
3efc183
to
7fd8deb
Compare
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 @gaelicWizard, left a couple of comments
90fcb4d
to
eb14b34
Compare
Anyway, I've just learned that |
0f14c28
to
118861f
Compare
69dd2fe
to
2f7da32
Compare
Ok, there should now be tests covering both cases of existing |
The logic to guess whether to use `.bash_profile` or `.bashrc` was buggy and wrong. Just use `.bashrc` and either automatically fill in a `.bash_profile`, or notify the user that they need to edit their `.bash_profile`.
docs/installation: add to note about interactive/login shells
- Alsö, add implementation note at top.
uninstall: TIL that `fgrep` is deprecated...
- and generally comment out useless varbls
2f7da32
to
affbce6
Compare
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 @gaelicWizard
sorry for the long time for the review, but I think it looks good.
@davidpfarrell - wanna take a look?
Is this a dead end or does anyone want to ressurect this PR andstill merge it? |
Description
The logic to guess whether to use
.bash_profile
or.bashrc
was buggy and wrong. Just use.bashrc
and either automatically fill in a.bash_profile
, or notify the user that they need to edit their.bash_profile
.This closes #1455, fixes #2084, and resolves #2022.
Motivation and Context
I honestly don't think that we should ever modify a user's
~/.bashrc
or~/.bash_profile
, but if we do then we should be better about it.TODO: add an optional pass to
_bash-it-migrate
which moves~/.bash_profile
to~/.bashrc
if the latter doesn't exist.How Has This Been Tested?
Types of changes
Checklist:
clean_files.txt
and formatted it usinglint_clean_files.sh
.