Warning
This solutions is less maintained than the Nix-Darwin one.
Some settings/programs might be missing from this setup.
In an Ubuntu environment first install build-essential
and python3-venv
:
sudo apt update && sudo apt install build-essential python3-venv -y
Install Homebrew:
/bin/bash -c "$(curl -fsSL \
https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Add Homebrew to your PATH
:
(echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') | tee -a ${HOME}/.zshenv ${HOME}/.bashrc
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
Run the terminal setup script:
/bin/bash -c "$(curl -fsSL \
https://raw.githubusercontent.com/daniel-mizsak/mtjd/main/scripts/terminal-setup.sh)"
Change the default shell to zsh
:
sudo chsh -s "$(command -v zsh)" "${USER}"