Last active
March 8, 2020 22:29
-
-
Save quangIO/5fdf3a55813080521baef12486092d36 to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/env bash | |
echo "Setting up mirrorlist and base-devel" | |
sudo echo -e "Server = http://mirror.es.its.nyu.edu/archlinux/$repo/os/\$arch\n$(cat /etc/pacman.d/mirrorlist)" > /etc/pacman.d/mirrorlist | |
sudo pacman -Syu --noconfirm base-devel git emacs cmake fish sd fd lsd tmux | |
curl https://gist.githubusercontent.com/quangIO/raw/extra.sh -o install_extra.sh | |
chmod +x install_extra.sh | |
#begin yay | |
if ! command -v yay >/dev/null; then | |
tmp=$(mktemp -d) | |
function finish { rm -rf "$tmp"; } # clean up after yourself... | |
trap finish EXIT # ...no matter how you exist | |
git clone https://aur.archlinux.org/yay.git "$tmp" | |
pushd "$tmp" | |
makepkg -sri --noconfirm --needed | |
popd | |
if ! command -v yay >/dev/null; then | |
>&2 echo "yay failed to install" | |
exit 1 | |
fi | |
fi | |
#end yay | |
#begin fish | |
echo "Setting up fish shell" | |
sudo chsh -s $(which fish) $(whoami) | |
#end fish |
This file contains 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
#!/usr/bin/env bash | |
#begin system-lang | |
echo "Installing system programming languages" | |
sudo pacman -Syu julia rustup ghc ponyc radare2 pwndbg --needed --noconfirm | |
#end system-lang | |
#begin doom-emacs | |
echo "Setting up doom emacs" | |
git clone https://github.com/hlissner/doom-emacs ~/.emacs.d -b develop --depth 1 | |
~/.emacs.d/bin/doom install | |
#end emacs | |
#begin remote-tty | |
echo "Setting up remote tools" | |
yay -Syu --noconfirm neovim-symlinks ttyd cloudflared-bin yadm-git | |
#end remote-tty | |
#begin tmux-plugin | |
echo "Setting up some tmux goodies" | |
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm | |
#end tmux-plugin | |
#begin config | |
#end config |
This file contains 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
#!/usr/bin/env bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment