-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·43 lines (36 loc) · 1023 Bytes
/
setup.sh
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
#!/bin/bash
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
vim \
tmux \
wget
rm -f ~/.vimrc
rm -rf ~/.vim
rm -f ~/.tmux.conf
rm -f ~/.gitconfig
rm -f ~/.gitignore
rm -rf ~/myjdk
git submodule update --init --recursive
cp .vimrc ~/
cp -r .vim ~/
cp .tmux.conf ~/
tmux source ~/.tmux.conf
cp .gitconfig ~/
cp .gitignore ~/
# java
mkdir -p ~/.local
cd ~/.local
wget https://download.oracle.com/java/23/latest/jdk-23_linux-x64_bin.tar.gz
rm -rf jdk-23 && mkdir jdk-23
tar xzf jdk-23_linux-x64_bin.tar.gz -C jdk-23 --strip-components 1
rm jdk-23_linux-x64_bin.tar.gz
echo "" >> ~/.bashrc
echo "export JAVA_HOME=~/.local/jdk-23" >> ~/.bashrc
echo "export PATH=\$JAVA_HOME/bin:\$PATH" >> ~/.bashrc
source ~/.bashrc
# task
mkdir -p ~/.local/bin
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b ~/.local/bin
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d v3.36.0
echo "export PATH=~/.local/bin:\$PATH" >> ~/.bashrc
source ~/.bashrc