kali_parrot_terminal icon indicating copy to clipboard operation
kali_parrot_terminal copied to clipboard

Changes required based on user

Open manavparekh opened this issue 5 years ago • 0 comments

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.

manavparekh avatar Aug 10 '19 09:08 manavparekh