This Python script helps you backup, restore, and set up your Linux terminal environment to look and behave like Kali Linux.
It automates the installation and configuration of Zsh, Oh My Zsh, popular plugins, and sets the robbyrussell theme.
It also safely backs up your existing terminal configuration files before making any changes.
- Backup your current
.zshrc,.bashrc, and.bash_profileto a timestamped directory. - Restore your terminal configuration from a previous backup.
- Automated setup:
- Installs
git,zsh, andcurl - Installs Oh My Zsh
- Installs zsh-syntax-highlighting and zsh-autosuggestions plugins
- Sets the Oh My Zsh theme to
robbyrussell - Sets up plugins in
.zshrc - Changes your default shell to Zsh
- Installs
- Python 3
- Debian/Ubuntu-based Linux distribution (for other distros, adapt the package manager commands)
sudoprivileges (for installing packages and changing the default shell)
- Download the script
wget https://github.com/cryptshoe/terminal-setup.git
chmod +x terminal_setup.py
- Run the script
python3 terminal_setup.py
- Choose an option:
1: Backup terminal configuration files2: Restore terminal configuration files from backup3: Setup terminal like Kali Linux (after backup!)
- Backups are stored in
~/terminal_backup/with a timestamp. - Restoring will overwrite your current configuration files with the selected backup.
- The script will prompt for your password when installing packages or changing the default shell.
- After setup, log out and log back in or open a new terminal to start using Zsh with the new configuration.
- If you want to revert your changes, use the restore option.
- If you encounter issues, ensure you have an active internet connection and
sudoprivileges. - For non-Debian systems, modify the package installation commands as needed.
Enjoy your Kali-like terminal!