Configuration files and setup instructions for Linux & macOS meta distribution.
All programs are chosen with simplicity in mind. Cross-platform programs that follow the UNIX philosophy are preferred. The setup is compliant with the XDG Base Directory Specification.
The setup is intended for (Arch) Linux and macOS.
Important
Copy over the contents and create directories:
\cp -R .config .local "$HOME"
\mkdir -p "$HOME/git" "$HOME/workspace" "${XDG_CACHE_HOME:-$HOME/.cache}/zsh"
Install packages on Arch Linux
# Arch Official Repositories
sudo pacman -S --noconfirm - < pkg_arch.txt
# Arch User Repository (AUR)
rustup toolchain install stable
sudo pacman -S --needed base-devel
git clone https://aur.archlinux.org/paru.git && cd paru && makepkg -si && cd .. && rm -rf paru
paru -S --noconfirm - < pkg_arch_aur.txt
Install packages on macOS
xargs brew install < pkg_macos.txt
Tip
Change shell to Zsh
chsh -s /usr/bin/zsh
Tip
It is possible to set a default location for .zshenv
.
sudo touch /etc/zsh/zshenv
printf "export ZDOTDIR=%s/.config/zsh\n" "$HOME" | sudo tee /etc/zsh/zshenv
Tip
It is also possible to bypass a password prompt when using sudo
:
sudo touch "/etc/sudoers.d/$USER"
printf "%s ALL=(ALL:ALL) NOPASSWD: ALL\n" "$USER" | sudo tee "/etc/sudoers.d/$USER"
Tip
The following will stop generating .sudo_as_admin_successful
.
sudo touch /etc/sudoers.d/disable_admin_file_in_home
printf "Defaults !admin_flag\n" | sudo tee /etc/sudoers.d/disable_admin_file_in_home