-
Notifications
You must be signed in to change notification settings - Fork 1
/
tool-install
executable file
·79 lines (73 loc) · 2.48 KB
/
tool-install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
mkdir ~/bin
rm go*
if [[ "$OSTYPE" == "linux-gnu" ]]; then
if [ -n "$(uname -a | grep Ubuntu)" ]; then
sudo apt-get update
sudo apt-get install -y git
sudo apt-get install -y build-essential
sudo apt-get install -y direnv
sudo apt-get install -y linuxbrew-wrapper
sudo apt-get install -y apt-transport-https
sudo apt-get install -y unzipf
sudo apt-get install -y gnome-screensaver
elif [ -n "$(uname -a | grep Debian)" ]; then
sudo apt-get update
sudo apt-get install -y git
sudo apt-get install -y build-essential
sudo apt-get install -y direnv
sudo apt-get install -y linuxbrew-wrapper
sudo apt-get install -y apt-transport-https
sudo apt-get install -y unzip
wget https://go.dev/dl/go1.21.4.linux-amd64.tar.gz
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go1.21.4.linux-amd64.tar.gz
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt install apt-transport-https ca-certificates curl gnupg lsb-release -y
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update
sudo apt -y install docker-ce docker-ce-cli containerd.io
sudo 'sudo usermod -a -G docker gherlein'
else
sudo yum update
sudo yum install -y git
sudo yum install -y emacs-nox unzip
fi
elif [[ "$OSTYPE" == "linux-gnueabihf" ]]; then
sudo apt-get update
sudo apt-get install -y git
sudo apt-get install -y build-essential
sudo apt-get install -y direnv
sudo apt-get install -y emacs25-nox git
sudo apt-get install -y apt-transport-https
elif [[ "$OSTYPE" == "darwin"* ]]; then
brew install direnv
brew install emacs --with-cocoa
elif [[ "$OSTYPE" == "cygwin" ]]; then
echo
elif [[ "$OSTYPE" == "msys" ]]; then
echo
elif [[ "$OSTYPE" == "win32" ]]; then
echo
elif [[ "$OSTYPE" == "freebsd"* ]]; then
echo
else
echo
fi
# install keychain
pushd .
cd ~
git clone [email protected]:funtoo/keychain.git
sudo cp ~/keychain/keychain /usr/bin
popd
# install emacs stuff
pushd .
cd ~
git clone [email protected]:gherlein/elisp.git
cd elisp
./install.sh
popd
# install direnv
export bin_path=~/bin
curl -sfL https://direnv.net/install.sh | bash