Skip to content

Releases: vexsx/Terminal-D

Terminal-D

13 Sep 19:06
a55bf6b
Compare
Choose a tag to compare

This script is a bash script that interacts with the user to change the CMD color and time zone settings.

  1. It first asks the user if they want to change the CMD color. If the user chooses "yes", it changes the CMD color by modifying the .bashrc file and setting the PS1 environment variable to a specific value. The new CMD color is set to display a colored prompt with username, hostname, current directory, and timestamp.

  2. After that, it asks the user if they want to change the time zone. If the user chooses "yes", it informs them that the default time zone is Asia/Tehran and proceeds to change the time zone using the timedatectl command. It sets the time zone to Asia/Tehran.

The script provides feedback to the user at each step, confirming whether the CMD color or time zone has been changed or not. It also handles invalid choices by displaying appropriate error messages.