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

Changes required based on user #1

Open
manavparekh opened this issue Aug 10, 2019 · 0 comments
Open

Changes required based on user #1

manavparekh opened this issue Aug 10, 2019 · 0 comments

Comments

@manavparekh
Copy link

Hi,

This script is really nice. Just a simple .bashrc replacement. I tried same with my linux machine and I come to know that noobs will not be able to use it until and unless they are logged in with root user.

I tried same script with below changes.

  1. Added read command to get input.
  2. Used username variable and updated paths.
  3. I found that was working fine with $username variable.

Now let's talk about best things we can improve in this code.

  • Moving old .bashrc will move user's personal settings including aliases.
  • We can use rsync along with if condition so it will choose dynamic directory path by checking username. Like normal user and root.
  • rsync will append this code to current .bashrc so user will not lose his/her settings.

Thank you for your hard work. It will help many users.

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

1 participant