* reorganization
* update java from 17 to 18 * update fish variable * update curl for rustup * fix string in arch script
This commit is contained in:
parent
d615a76544
commit
ca867258f6
2 changed files with 14 additions and 21 deletions
13
arch.sh
13
arch.sh
|
@ -124,28 +124,25 @@ then
|
||||||
micro -plugin install detectindent
|
micro -plugin install detectindent
|
||||||
|
|
||||||
# === GL4D ==
|
# === GL4D ==
|
||||||
# Download and build
|
# Download, build and installation
|
||||||
git clone https://github.com/noalien/GL4Dummies.git
|
git clone https://github.com/noalien/GL4Dummies.git
|
||||||
cd GL4Dummies || exit
|
cd GL4Dummies || exit
|
||||||
make -f Makefile.autotools
|
make -f Makefile.autotools
|
||||||
./configure
|
./configure
|
||||||
make
|
make
|
||||||
# Install it
|
|
||||||
make install
|
make install
|
||||||
# Remove folder
|
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf GL4Dummies
|
rm -rf GL4Dummies
|
||||||
# Fix for shared libraries (https://stackoverflow.com/a/9395355)
|
# Fix for shared libraries (https://stackoverflow.com/a/9395355)
|
||||||
ldconfig
|
ldconfig
|
||||||
# Add to path
|
# Add to path
|
||||||
#echo -e "\n# GL4Dummies\nexport PATH=/usr/local/bin:\$PATH\nexport LD_LIBRARY_PATH=/usr/local/lib:\$LD_LIBRARY_PATH\n" >> "$HOME"/.bashrc
|
fish -c "set -Ua LD_LIBRARY_PATH /usr/local/lib"
|
||||||
fish -c "set -Ux LD_LIBRARY_PATH /usr/local/lib \$LD_LIBRARY_PATH"
|
|
||||||
|
|
||||||
# === Sign commits ==
|
# === Sign commits ==
|
||||||
git config --global commit.gpgsign true
|
git config --global commit.gpgsign true
|
||||||
|
|
||||||
# === Rust ==
|
# === Rust ==
|
||||||
curl https://sh.rustup.rs -sSf | sh -s -- -y
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||||
source "$HOME"/.cargo/env
|
source "$HOME"/.cargo/env
|
||||||
# Dev tools
|
# Dev tools
|
||||||
rustup component add rust-analysis
|
rustup component add rust-analysis
|
||||||
|
@ -303,7 +300,7 @@ then
|
||||||
fi
|
fi
|
||||||
fish -c 'fisher install reitzig/sdkman-for-fish'
|
fish -c 'fisher install reitzig/sdkman-for-fish'
|
||||||
fi
|
fi
|
||||||
sdk install java 17.0.3-tem # https://whichjdk.com/#adoptium-eclipse-temurin
|
sdk install java 18.0.2-tem # https://whichjdk.com/#adoptium-eclipse-temurin
|
||||||
yes | sdk upgrade java
|
yes | sdk upgrade java
|
||||||
|
|
||||||
# === UBW (pare-feu) ==
|
# === UBW (pare-feu) ==
|
||||||
|
@ -342,5 +339,5 @@ then
|
||||||
|
|
||||||
echo -e "\nInstallation terminée.\nIl faut redémarrer l'ordinateur.\nPensez à activer les extensions après redémarrage."
|
echo -e "\nInstallation terminée.\nIl faut redémarrer l'ordinateur.\nPensez à activer les extensions après redémarrage."
|
||||||
else
|
else
|
||||||
echo "Ce script ne fonctionne que sur Manjaro."
|
echo "Ce script ne fonctionne que sur Arch."
|
||||||
fi
|
fi
|
||||||
|
|
22
wsl.sh
22
wsl.sh
|
@ -25,10 +25,6 @@ then
|
||||||
apt autoremove -y
|
apt autoremove -y
|
||||||
|
|
||||||
# === Fish ==
|
# === Fish ==
|
||||||
# Install micro
|
|
||||||
cd /usr/local/bin || exit
|
|
||||||
curl https://getmic.ro | GETMICRO_PLATFORM=linux64 bash
|
|
||||||
cd - || exit
|
|
||||||
# Remove motd
|
# Remove motd
|
||||||
fish -c "set -U fish_greeting"
|
fish -c "set -U fish_greeting"
|
||||||
# Reversed search
|
# Reversed search
|
||||||
|
@ -73,8 +69,6 @@ then
|
||||||
fish -c "set -U fish_pager_color_selected_background --background=brblack"
|
fish -c "set -U fish_pager_color_selected_background --background=brblack"
|
||||||
fish -c "set -U fish_color_option d3d0c8"
|
fish -c "set -U fish_color_option d3d0c8"
|
||||||
fish -c "set -U fish_color_keyword 99cc99"
|
fish -c "set -U fish_color_keyword 99cc99"
|
||||||
# EXA colors
|
|
||||||
fish -c "set -Ux EXA_COLORS 'di=1;36:da=35'"
|
|
||||||
# Adding aliases
|
# Adding aliases
|
||||||
fish -c "abbr ls 'exa --git --icons -glh'"
|
fish -c "abbr ls 'exa --git --icons -glh'"
|
||||||
fish -c "abbr cp 'cp -rv'"
|
fish -c "abbr cp 'cp -rv'"
|
||||||
|
@ -97,28 +91,28 @@ then
|
||||||
fish -c "abbr gc 'git clone'"
|
fish -c "abbr gc 'git clone'"
|
||||||
fish -c "abbr tlmgr 'sudo \$(which tlmgr)'"
|
fish -c "abbr tlmgr 'sudo \$(which tlmgr)'"
|
||||||
|
|
||||||
# === Micro configuration ==
|
# === Micro ==
|
||||||
|
cd /usr/local/bin || exit
|
||||||
|
curl https://getmic.ro | GETMICRO_PLATFORM=linux64 bash
|
||||||
|
cd - || exit
|
||||||
git config --global core.editor "micro"
|
git config --global core.editor "micro"
|
||||||
wget -q --show-progress https://git.kennel.ml/Anri/confOS/raw/branch/main/.config/micro/settings.json -O "$HOME"/.config/micro/settings.json
|
wget -q --show-progress https://git.kennel.ml/Anri/confOS/raw/branch/main/.config/micro/settings.json -O "$HOME"/.config/micro/settings.json
|
||||||
micro -plugin install detectindent
|
micro -plugin install detectindent
|
||||||
|
|
||||||
# === GL4D ==
|
# === GL4D ==
|
||||||
# Download and build
|
# Download, build and installation
|
||||||
git clone https://github.com/noalien/GL4Dummies.git
|
git clone https://github.com/noalien/GL4Dummies.git
|
||||||
cd GL4Dummies || exit
|
cd GL4Dummies || exit
|
||||||
make -f Makefile.autotools
|
make -f Makefile.autotools
|
||||||
./configure
|
./configure
|
||||||
make
|
make
|
||||||
# Installing it
|
|
||||||
make install
|
make install
|
||||||
# Removing folder
|
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf GL4Dummies
|
rm -rf GL4Dummies
|
||||||
# Fix for shared libraries (https://stackoverflow.com/a/9395355)
|
# Fix for shared libraries (https://stackoverflow.com/a/9395355)
|
||||||
ldconfig
|
ldconfig
|
||||||
# Add to path
|
# Add to path
|
||||||
#echo -e "\n# GL4Dummies\nexport PATH=/usr/local/bin:\$PATH\nexport LD_LIBRARY_PATH=/usr/local/lib:\$LD_LIBRARY_PATH\n" >> "$HOME"/.bashrc
|
fish -c "set -Ua LD_LIBRARY_PATH /usr/local/lib"
|
||||||
fish -c "set -Ux LD_LIBRARY_PATH /usr/local/lib \$LD_LIBRARY_PATH"
|
|
||||||
|
|
||||||
# === Latex ==
|
# === Latex ==
|
||||||
wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
|
wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
|
||||||
|
@ -145,6 +139,8 @@ then
|
||||||
|
|
||||||
# === Exa ==
|
# === Exa ==
|
||||||
cargo install exa
|
cargo install exa
|
||||||
|
# EXA colors
|
||||||
|
fish -c "set -Ux EXA_COLORS 'di=1;36:da=35'"
|
||||||
|
|
||||||
# === tldr ==
|
# === tldr ==
|
||||||
cargo install tealdeer
|
cargo install tealdeer
|
||||||
|
@ -165,7 +161,7 @@ then
|
||||||
fi
|
fi
|
||||||
fish -c 'fisher install reitzig/sdkman-for-fish'
|
fish -c 'fisher install reitzig/sdkman-for-fish'
|
||||||
fi
|
fi
|
||||||
sdk install java 17.0.2-tem # https://whichjdk.com/#adoptium-eclipse-temurin
|
sdk install java 18.0.2-tem # https://whichjdk.com/#adoptium-eclipse-temurin
|
||||||
yes | sdk upgrade java
|
yes | sdk upgrade java
|
||||||
|
|
||||||
# === Manual color ==
|
# === Manual color ==
|
||||||
|
|
Loading…
Reference in a new issue