Skip to content

Instantly share code, notes, and snippets.

@j1n3l0
Created January 16, 2023 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save j1n3l0/7c6d2b7f123c997be8e81e3fc503917b to your computer and use it in GitHub Desktop.
Save j1n3l0/7c6d2b7f123c997be8e81e3fc503917b to your computer and use it in GitHub Desktop.
Install the dev utilities I need
#!/bin/bash
set -euxo pipefail
#
# Install the dev utilities I need
# emacs (blead)
if ! [ -x "$(command -v emacs)" ]; then
# I needed these dependencies (you might not)
sudo apt-get -y install "autoconf" "texinfo" "libncurses-dev"
cd "$(mktemp -d)"
git clone git@github.com:emacs-mirror/emacs.git
cd emacs/
./autogen.sh
./configure --without-x --with-gnutls=ifavailable --with-mailutils
make
make check
sudo make install
fi
# entr
if ! [ -x "$(command -v entr)" ]; then
cd "$(mktemp -d)"
curl -LO "http://eradman.com/entrproject/code/entr-5.2.tar.gz"
tar xzf "entr-5.2.tar.gz"
cd "entr-5.2"
./configure
make
sudo make install
fi
# fd
if ! [ -x "$(command -v fd)" ]; then
cd "$(mktemp -d)"
curl -LO "https://github.com/sharkdp/fd/releases/download/v8.5.3/fd-musl_8.5.3_amd64.deb"
sudo dpkg -i "fd-musl_8.5.3_amd64.deb"
fi
# jq
if ! [ -x "$(command -v jq)" ]; then
sudo apt-get -y install "jq"
fi
# rg (ripgrep)
if ! [ -x "$(command -v rg)" ]; then
cd "$(mktemp -d)"
curl -LO "https://github.com/BurntSushi/ripgrep/releases/download/13.0.0/ripgrep_13.0.0_amd64.deb"
sudo dpkg -i "ripgrep_13.0.0_amd64.deb"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment