Add Opam path and refactor path organization

This commit is contained in:
Mylloon 2022-10-18 19:28:31 +02:00
parent b01fa44e60
commit f1c774c0cd
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 11 additions and 6 deletions

View file

@ -156,8 +156,9 @@ then
curl --proto "=https" --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source "$HOME"/.cargo/env
# Dev tools
rustup component add rust-analysis
rustup component add rls
rustup component add rust-analysis rls
# Add Cargo packages from Rust
fish -c "fish_add_path $HOME/.cargo/bin"
# === tldr ==
cargo install tealdeer
@ -361,7 +362,7 @@ then
git config --global pull.rebase true
git config --global init.defaultBranch main
# === Path ==
# === Python ==
# Add PIP packages from Python to the path
fish -c "fish_add_path /home/anri/.local/bin"
@ -371,6 +372,8 @@ then
yes | opam init
opam install -y utop ocaml-lsp-server ocamlformat ocamlformat-rpc
wget -q https://git.kennel.ml/Anri/confOS/raw/branch/main/dotfiles/.ocamlformat -O "$HOME"/.ocamlformat
# Add Opam packages from OCaml
fish -c "fish_add_path /home/anri/.opam/default/bin"
# === Clang ==
wget -q https://git.kennel.ml/Anri/confOS/raw/branch/main/dotfiles/.clang-format -O "$HOME"/.clang-format

View file

@ -40,6 +40,8 @@ then
source "$HOME"/.cargo/env
# Dev tools
rustup component add rust-analysis rls
# Add Cargo packages from Rust
fish -c "fish_add_path $HOME/.cargo/bin"
# === Set-up systemd
mkdir subsystemctl
@ -188,11 +190,9 @@ then
git config --global pull.rebase true
git config --global init.defaultBranch main
# === Path ==
# === Python ==
# Add PIP packages from Python
fish -c "fish_add_path $HOME/.local/bin"
# Add Cargo packages from Rust
fish -c "fish_add_path $HOME/.cargo/bin"
# === OCaml ==
# Init Opam and install stuff
@ -200,6 +200,8 @@ then
yes | opam init
opam install -y utop ocaml-lsp-server ocamlformat ocamlformat-rpc
wget -q https://git.kennel.ml/Anri/confOS/raw/branch/main/dotfiles/.ocamlformat -O "$HOME"/.ocamlformat
# Add Opam packages from OCaml
fish -c "fish_add_path /home/anri/.opam/default/bin"
# === Clang ==
wget -q https://git.kennel.ml/Anri/confOS/raw/branch/main/dotfiles/.clang-format -O "$HOME"/.clang-format