Add Opam path and refactor path organization
This commit is contained in:
parent
b01fa44e60
commit
f1c774c0cd
2 changed files with 11 additions and 6 deletions
9
arch.sh
9
arch.sh
|
@ -156,8 +156,9 @@ then
|
||||||
curl --proto "=https" --tlsv1.2 -sSf https://sh.rustup.rs | 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 rls
|
||||||
rustup component add rls
|
# Add Cargo packages from Rust
|
||||||
|
fish -c "fish_add_path $HOME/.cargo/bin"
|
||||||
|
|
||||||
# === tldr ==
|
# === tldr ==
|
||||||
cargo install tealdeer
|
cargo install tealdeer
|
||||||
|
@ -361,7 +362,7 @@ then
|
||||||
git config --global pull.rebase true
|
git config --global pull.rebase true
|
||||||
git config --global init.defaultBranch main
|
git config --global init.defaultBranch main
|
||||||
|
|
||||||
# === Path ==
|
# === Python ==
|
||||||
# Add PIP packages from Python to the path
|
# Add PIP packages from Python to the path
|
||||||
fish -c "fish_add_path /home/anri/.local/bin"
|
fish -c "fish_add_path /home/anri/.local/bin"
|
||||||
|
|
||||||
|
@ -371,6 +372,8 @@ then
|
||||||
yes | opam init
|
yes | opam init
|
||||||
opam install -y utop ocaml-lsp-server ocamlformat ocamlformat-rpc
|
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
|
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 ==
|
# === Clang ==
|
||||||
wget -q https://git.kennel.ml/Anri/confOS/raw/branch/main/dotfiles/.clang-format -O "$HOME"/.clang-format
|
wget -q https://git.kennel.ml/Anri/confOS/raw/branch/main/dotfiles/.clang-format -O "$HOME"/.clang-format
|
||||||
|
|
|
@ -40,6 +40,8 @@ then
|
||||||
source "$HOME"/.cargo/env
|
source "$HOME"/.cargo/env
|
||||||
# Dev tools
|
# Dev tools
|
||||||
rustup component add rust-analysis rls
|
rustup component add rust-analysis rls
|
||||||
|
# Add Cargo packages from Rust
|
||||||
|
fish -c "fish_add_path $HOME/.cargo/bin"
|
||||||
|
|
||||||
# === Set-up systemd
|
# === Set-up systemd
|
||||||
mkdir subsystemctl
|
mkdir subsystemctl
|
||||||
|
@ -188,11 +190,9 @@ then
|
||||||
git config --global pull.rebase true
|
git config --global pull.rebase true
|
||||||
git config --global init.defaultBranch main
|
git config --global init.defaultBranch main
|
||||||
|
|
||||||
# === Path ==
|
# === Python ==
|
||||||
# Add PIP packages from Python
|
# Add PIP packages from Python
|
||||||
fish -c "fish_add_path $HOME/.local/bin"
|
fish -c "fish_add_path $HOME/.local/bin"
|
||||||
# Add Cargo packages from Rust
|
|
||||||
fish -c "fish_add_path $HOME/.cargo/bin"
|
|
||||||
|
|
||||||
# === OCaml ==
|
# === OCaml ==
|
||||||
# Init Opam and install stuff
|
# Init Opam and install stuff
|
||||||
|
@ -200,6 +200,8 @@ then
|
||||||
yes | opam init
|
yes | opam init
|
||||||
opam install -y utop ocaml-lsp-server ocamlformat ocamlformat-rpc
|
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
|
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 ==
|
# === Clang ==
|
||||||
wget -q https://git.kennel.ml/Anri/confOS/raw/branch/main/dotfiles/.clang-format -O "$HOME"/.clang-format
|
wget -q https://git.kennel.ml/Anri/confOS/raw/branch/main/dotfiles/.clang-format -O "$HOME"/.clang-format
|
||||||
|
|
Loading…
Reference in a new issue