Last active
August 29, 2025 21:54
-
-
Save MattGrayYes/af57bacd5b2a199e8175c475ab6c9204 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| sudo apt update | |
| sudo apt install vim htop curl wget zsh git | |
| sudo apt upgrade | |
| echo "installing OMZ for zsh" | |
| sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended | |
| echo "Setting up OMZ theme and profile for current user by editing .zshrc and .zprofile" | |
| sed -i 's/ZSH_THEME="robbyrussell"/ZSH_THEME="agnoster"/g' ~/.zshrc | |
| cat <<EOT >> ~/.zprofile | |
| # MG added by new_linux_machine.sh | |
| NO_FORMAT="\033[0m" | |
| F_BOLD="\033[1m" | |
| C_WHITE="\033[38;5;15m" | |
| C_RED1="\033[48;5;196m" | |
| F_INVERT="\033[7m" | |
| F_UNINVERT="\033[27m" | |
| alias ifconfig="echo -e '${C_RED1}${F_BOLD}${C_WHITE}\n\tUSE ${F_INVERT} ip addr ${F_UNINVERT} COMMAND INSTEAD\t\n\tifconfig is deprecated\t${NO_FORMAT}\n'; ip addr;" | |
| alias ls="ls -C" | |
| EOT | |
| echo "changing shell to zsh with omz" | |
| chsh -s/bin/zsh | |
| echo -e "\ndone. Log out and log back in again, and hopefully your default shell should be zsh + OMZ" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment