-
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
Add command to edit start-up files based on existance #2022
Conversation
Greetings! Although this simple alias is pretty safe, I fee like it may be an indicator that you're not quite using Your alias implies that you might be trying manage ALL of your shell configuration within .bashrc. If true, this is likely an un-optimal scenario, even for MAC OS It is true that MAC OS is different in that:
As such, this creates limitations in some use cases :
Outside of that, though, :: They have different life cycles:
:: They are meant to contain different types of shell configuration:
Here's an example of the profile/rc invocation across 3 different scenarios
Anyway this may all be overkill and you likely already know these things, but I decided to use this as exercise to gather my thoughts on these ideas and flesh them out a bit ... Just the same, I'm not sure your new alias is quite valuable enough, but I don't have an opinion either way on whether it should be approved or rejected, as its seems pretty safe overall ... |
@davidpfarrell, I think you may have misunderstood (or I did!). It's Bash It's installer that misuses Aside: I don't think any GUI logins on any Linux distribution run an interactive login shell to start the GUI session. |
Let me take another run at a review of this PR... My issues is that the AND good shell management would seem to expect that BOTH will be used to manage their respective configuration types (variables vs aliases, etc) So I'm just not sure if the new alias brings enough value ...
YES you are correct - Its been awhile since I've used a linux+GUI, and my memory failed me. I was mis-remembering the execution of |
@davidpfarrell, if you are bored and want a rabbit-hole to fall down, here's some fun discussion on whether (and which) Linux GUI logins load |
Description
Add an alias to automatically select the entry file and edit its content.
Motivation and Context
I recently switch to macOS from Linux and there while installing bashit, it selected bash profile without my knowledge but I have a habit of using
vbrc
. So i decided to add a general command with fallbacksHow Has This Been Tested?
Locally on macOS and Linux
Screenshots (if appropriate):
Types of changes
Checklist:
clean_files.txt
and formatted it usinglint_clean_files.sh
.