Skip to content

Instantly share code, notes, and snippets.

@quangIO
Last active March 8, 2020 22:29
Show Gist options
  • Save quangIO/5fdf3a55813080521baef12486092d36 to your computer and use it in GitHub Desktop.
Save quangIO/5fdf3a55813080521baef12486092d36 to your computer and use it in GitHub Desktop.
#!/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
#!/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
#!/usr/bin/env bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment