||: is short for || true
This commit is contained in:
parent
bd3dafef03
commit
29b4703b20
2 changed files with 9 additions and 9 deletions
8
arch.sh
8
arch.sh
|
@ -145,7 +145,7 @@ main() {
|
||||||
# === Rust ==
|
# === Rust ==
|
||||||
# Add Cargo packages from Rust
|
# Add Cargo packages from Rust
|
||||||
mkdir -p "$HOME"/.cargo/bin
|
mkdir -p "$HOME"/.cargo/bin
|
||||||
fish -c "fish_add_path $HOME/.cargo/bin | true"
|
fish -c "fish_add_path $HOME/.cargo/bin ||:"
|
||||||
# Add cargo packages
|
# Add cargo packages
|
||||||
cargo install cargo-update cargo-cache
|
cargo install cargo-update cargo-cache
|
||||||
|
|
||||||
|
@ -363,7 +363,7 @@ main() {
|
||||||
# === Python ==
|
# === Python ==
|
||||||
# Add PIP packages from Python to the path
|
# Add PIP packages from Python to the path
|
||||||
mkdir -p "$HOME"/.local/bin
|
mkdir -p "$HOME"/.local/bin
|
||||||
fish -c "fish_add_path /home/anri/.local/bin | true"
|
fish -c "fish_add_path /home/anri/.local/bin ||:"
|
||||||
|
|
||||||
# === OCaml ==
|
# === OCaml ==
|
||||||
# Init Opam and install stuff
|
# Init Opam and install stuff
|
||||||
|
@ -374,14 +374,14 @@ main() {
|
||||||
wget -q ${repo}/dotfiles/.ocamlformat -O "$HOME"/.ocamlformat
|
wget -q ${repo}/dotfiles/.ocamlformat -O "$HOME"/.ocamlformat
|
||||||
# Add Opam packages from OCaml
|
# Add Opam packages from OCaml
|
||||||
mkdir -p "$HOME"/.opam/default/bin
|
mkdir -p "$HOME"/.opam/default/bin
|
||||||
fish -c "fish_add_path /home/anri/.opam/default/bin | true"
|
fish -c "fish_add_path /home/anri/.opam/default/bin ||:"
|
||||||
|
|
||||||
# === Clang ==
|
# === Clang ==
|
||||||
wget -q ${repo}/dotfiles/.clang-format -O "$HOME"/.clang-format
|
wget -q ${repo}/dotfiles/.clang-format -O "$HOME"/.clang-format
|
||||||
|
|
||||||
# === Perl ==
|
# === Perl ==
|
||||||
# Add perl packages to path
|
# Add perl packages to path
|
||||||
fish -c "fish_add_path /usr/bin/vendor_perl | true"
|
fish -c "fish_add_path /usr/bin/vendor_perl ||:"
|
||||||
|
|
||||||
# === Discord ==
|
# === Discord ==
|
||||||
# Skip update
|
# Skip update
|
||||||
|
|
10
arch_wsl.sh
10
arch_wsl.sh
|
@ -73,7 +73,7 @@ main() {
|
||||||
# === Rust ==
|
# === Rust ==
|
||||||
# Add Cargo packages from Rust
|
# Add Cargo packages from Rust
|
||||||
mkdir -p "$HOME"/.cargo/bin
|
mkdir -p "$HOME"/.cargo/bin
|
||||||
fish -c "fish_add_path $HOME/.cargo/bin | true"
|
fish -c "fish_add_path $HOME/.cargo/bin ||:"
|
||||||
# Add cargo packages
|
# Add cargo packages
|
||||||
cargo install cargo-update cargo-cache
|
cargo install cargo-update cargo-cache
|
||||||
|
|
||||||
|
@ -165,7 +165,7 @@ main() {
|
||||||
# === Python ==
|
# === Python ==
|
||||||
# Add PIP packages from Python
|
# Add PIP packages from Python
|
||||||
mkdir -p "$HOME"/.local/bin
|
mkdir -p "$HOME"/.local/bin
|
||||||
fish -c "fish_add_path $HOME/.local/bin | true"
|
fish -c "fish_add_path $HOME/.local/bin ||:"
|
||||||
|
|
||||||
# === OCaml ==
|
# === OCaml ==
|
||||||
# Init Opam and install stuff
|
# Init Opam and install stuff
|
||||||
|
@ -176,7 +176,7 @@ main() {
|
||||||
wget -q ${repo}/dotfiles/.ocamlformat -O "$HOME"/.ocamlformat
|
wget -q ${repo}/dotfiles/.ocamlformat -O "$HOME"/.ocamlformat
|
||||||
# Add Opam packages from OCaml
|
# Add Opam packages from OCaml
|
||||||
mkdir -p "$HOME"/.opam/default/bin
|
mkdir -p "$HOME"/.opam/default/bin
|
||||||
fish -c "fish_add_path $HOME/.opam/default/bin | true"
|
fish -c "fish_add_path $HOME/.opam/default/bin ||:"
|
||||||
# Fix dlllwt_unix_stubs.so shared object file
|
# Fix dlllwt_unix_stubs.so shared object file
|
||||||
fish -c "set -Ux CAML_LD_LIBRARY_PATH $(opam var stublibs)"
|
fish -c "set -Ux CAML_LD_LIBRARY_PATH $(opam var stublibs)"
|
||||||
|
|
||||||
|
@ -192,7 +192,7 @@ main() {
|
||||||
|
|
||||||
# === Perl ==
|
# === Perl ==
|
||||||
# Add perl packages to path
|
# Add perl packages to path
|
||||||
fish -c "fish_add_path /usr/bin/vendor_perl | true"
|
fish -c "fish_add_path /usr/bin/vendor_perl ||:"
|
||||||
|
|
||||||
# === Emacs ==
|
# === Emacs ==
|
||||||
# mkdir -p "$HOME"/.emacs.d
|
# mkdir -p "$HOME"/.emacs.d
|
||||||
|
@ -213,7 +213,7 @@ main() {
|
||||||
sudo npm i -g npm@latest
|
sudo npm i -g npm@latest
|
||||||
|
|
||||||
# === Clear useless packages
|
# === Clear useless packages
|
||||||
pacman -Qqtd | sudo pacman --noconfirm -Rsn subsystemctl - 2> /dev/null || true
|
pacman -Qqtd | sudo pacman --noconfirm -Rsn subsystemctl - 2> /dev/null ||:
|
||||||
|
|
||||||
echo -e "\nInstallation terminée !\nIl faut redémarrer WSL (dans Powershell = wsl --shutdown)."
|
echo -e "\nInstallation terminée !\nIl faut redémarrer WSL (dans Powershell = wsl --shutdown)."
|
||||||
echo -e "---\nPense bien à paramétrer ton terminal, exemple avec Windows Terminal :"
|
echo -e "---\nPense bien à paramétrer ton terminal, exemple avec Windows Terminal :"
|
||||||
|
|
Loading…
Reference in a new issue