Last active
January 14, 2020 13:19
-
-
Save lsjostro/673789b3ae54dae4ebe8beca0e758124 to your computer and use it in GitHub Desktop.
init linux dotfiles
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
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