This script automates the setup and configuration of a new Pop!_OS installation. It installs essential programs, sets up the Zsh shell with the Zap plugin manager, and fetches a custom .zshrc configuration.
- System Update: Fully updates and upgrades your system using
apt. - Package Installation: Installs a predefined list of essential command-line tools:
zsh: A powerful and modern shell.nala: A prettier and faster front-end forapt.gh: The official GitHub CLI.
- Zsh & Zap:
- Installs
zshand sets it as the default shell. - Installs Zap, a minimal and fast Zsh plugin manager.
- Installs
- Custom Configuration: Downloads a
.zshrcfile from a specified URL to quickly set up your shell environment. It automatically backs up any existing.zshrcfile.
-
Alternatively, Run Directly from GitHub:
You can execute this script directly from GitHub without cloning the repository first. This is useful for new Pop!_OS installations.
bash <(curl -s https://raw.githubusercontent.com/r3mcos3/popos-script/main/setup_popos.sh)The script will ask for your
sudopassword at the beginning and then run non-interactively. -
Customize the Script (Optional):
Open
setup_popos.shand modify the following variables to fit your needs:ZSHRC_URL: Change the URL to point to your own raw.zshrcfile.PROGRAMS_TO_INSTALL: Add or remove programs from the list.
-
Make the Script Executable (if running locally):
If you cloned the repository and want to run the script locally, make it executable:
chmod +x setup_popos.sh
-
Run the Script (if running locally):
./setup_popos.sh
The script will ask for your
sudopassword at the beginning and then run non-interactively. -
Log Out and Log Back In:
For the default shell change to take effect, you must log out of your session and log back in.
This script runs commands with sudo and modifies your system configuration (e.g., your default shell and .zshrc). Please review the script's contents carefully to ensure you understand what it does before executing it.