Skip to content

Instantly share code, notes, and snippets.

@lsjostro
Last active January 14, 2020 13:19
Show Gist options
  • Save lsjostro/673789b3ae54dae4ebe8beca0e758124 to your computer and use it in GitHub Desktop.
Save lsjostro/673789b3ae54dae4ebe8beca0e758124 to your computer and use it in GitHub Desktop.
init linux dotfiles
USERNAME=lsjostrom
pacman -S base-devel git wget iwd iw sudo zsh
useradd -m -s /bin/zsh -G wheel $USERNAME
passwd $USERNAME
echo "%wheel ALL=(ALL) ALL" >> /etc/sudoers
sudo -i -u $USERNAME /bin/bash << EOF
echo "--- Init dotfiles"
git clone -b linux https://github.com/lsjostro/dotfiles.git $HOME/.dot_git --bare && \
git --work-tree $HOME --git-dir $HOME/.dot_git checkout --force && \
mkdir -p $HOME/.dot_git/info && echo '*' > $HOME/.dot_git/info/exclude
echo "--- Setup AUR"
cd /tmp && wget -qO- https://github.com/Jguer/yay/releases/download/v9.4.2/yay_9.4.2_x86_64.tar.gz | tar xvz && yay*/yay -S yay-bin
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment