If you’ve ever customized your .bashrc
, .profile
, or .bash_logout
files only to realize things went wrong, don’t panic! The BashProfileReset script is here to help you quickly revert your bash configuration back to its default state. This simple utility ensures that you can recover from problematic changes, keeping your environment clean and functional.
Key Features
- Automatic Backup: The script creates timestamped backups of your existing bash configuration files.
- Restore Defaults: It restores the default bash profile settings from Debian 12.
- Error Handling: You’ll receive clear feedback throughout the process, ensuring smooth execution.
Installation and Usage
-
Download the Script: Use
wget
to get the script from the GitHub repository. - Make It Executable:
chmod +x reset-bash-profile.sh
- Run the Script:
sudo ./reset-bash-profile.sh username
What Does the Script Do?
- Backup Files: It stores backups of
.bashrc
,.profile
, and.bash_logout
. - Restore Defaults: Copies the default files from
/etc/skel/
. - Permissions: Ensures the correct permissions are set for the restored files.
After Running the Script
- Apply Changes: Either log out and log back in or execute
source ~/.bashrc
to apply changes immediately.
Troubleshooting
If you encounter any issues, the script provides helpful error messages. Common solutions include running the script with sudo
and checking that the user exists on the system.
For further information, you can explore the project on GitHub.
With BashProfileReset, reverting your bash profile to the default settings has never been easier, helping you fix mistakes without losing critical data.
[…] If you want to uninstall thais bash customization, just check the instructions here. […]