don't fail on dir creation
This commit is contained in:
parent
115326aced
commit
bd3dafef03
2 changed files with 12 additions and 12 deletions
8
arch.sh
8
arch.sh
|
@ -79,7 +79,7 @@ main() {
|
||||||
fish -c "fisher install jorgebucaran/autopair.fish"
|
fish -c "fisher install jorgebucaran/autopair.fish"
|
||||||
# SSH
|
# SSH
|
||||||
wget -q https://gitlab.com/kyb/fish_ssh_agent/raw/master/functions/fish_ssh_agent.fish -P "$HOME"/.config/fish/functions/
|
wget -q https://gitlab.com/kyb/fish_ssh_agent/raw/master/functions/fish_ssh_agent.fish -P "$HOME"/.config/fish/functions/
|
||||||
mkdir "$HOME"/.ssh
|
mkdir -p "$HOME"/.ssh
|
||||||
# Custom config.fish
|
# Custom config.fish
|
||||||
wget -q ${repo}/.config/fish/config_arch.fish -O "$HOME"/.config/fish/config.fish
|
wget -q ${repo}/.config/fish/config_arch.fish -O "$HOME"/.config/fish/config.fish
|
||||||
# Fish theme
|
# Fish theme
|
||||||
|
@ -123,7 +123,7 @@ main() {
|
||||||
fish -c "set -Ux EDITOR nano"
|
fish -c "set -Ux EDITOR nano"
|
||||||
|
|
||||||
# === Micro configuration ==
|
# === Micro configuration ==
|
||||||
mkdir "$HOME"/.config/micro
|
mkdir -p "$HOME"/.config/micro
|
||||||
wget -q --show-progress ${repo}/.config/micro/settings.json -O "$HOME"/.config/micro/settings.json
|
wget -q --show-progress ${repo}/.config/micro/settings.json -O "$HOME"/.config/micro/settings.json
|
||||||
micro -plugin install detectindent
|
micro -plugin install detectindent
|
||||||
|
|
||||||
|
@ -328,7 +328,7 @@ main() {
|
||||||
fish -c "set -Ux MANROFFOPT \"-c\""
|
fish -c "set -Ux MANROFFOPT \"-c\""
|
||||||
|
|
||||||
# === Bat config ==
|
# === Bat config ==
|
||||||
mkdir "$HOME"/.config/bat
|
mkdir -p "$HOME"/.config/bat
|
||||||
wget -q --show-progress ${repo}/.config/bat/config -O "$HOME"/.config/bat/config
|
wget -q --show-progress ${repo}/.config/bat/config -O "$HOME"/.config/bat/config
|
||||||
|
|
||||||
# === Docker ==
|
# === Docker ==
|
||||||
|
@ -362,7 +362,7 @@ main() {
|
||||||
|
|
||||||
# === Python ==
|
# === Python ==
|
||||||
# Add PIP packages from Python to the path
|
# Add PIP packages from Python to the path
|
||||||
mkdir "$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 | true"
|
||||||
|
|
||||||
# === OCaml ==
|
# === OCaml ==
|
||||||
|
|
16
arch_wsl.sh
16
arch_wsl.sh
|
@ -78,7 +78,7 @@ main() {
|
||||||
cargo install cargo-update cargo-cache
|
cargo install cargo-update cargo-cache
|
||||||
|
|
||||||
# === Set-up systemd
|
# === Set-up systemd
|
||||||
mkdir subsystemctl
|
mkdir -p subsystemctl
|
||||||
cd subsystemctl || exit
|
cd subsystemctl || exit
|
||||||
curl -so PKGBUILD https://raw.githubusercontent.com/sorah/arch.sorah.jp/master/aur-sorah/PKGBUILDs/subsystemctl/PKGBUILD
|
curl -so PKGBUILD https://raw.githubusercontent.com/sorah/arch.sorah.jp/master/aur-sorah/PKGBUILDs/subsystemctl/PKGBUILD
|
||||||
makepkg -si --noconfirm
|
makepkg -si --noconfirm
|
||||||
|
@ -92,7 +92,7 @@ main() {
|
||||||
subsystemctl exec sudo localectl set-locale fr_FR.UTF-8
|
subsystemctl exec sudo localectl set-locale fr_FR.UTF-8
|
||||||
|
|
||||||
# === Shared folders ==
|
# === Shared folders ==
|
||||||
sudo mkdir /mnt/y
|
sudo mkdir -p /mnt/y
|
||||||
|
|
||||||
# === Fish ==
|
# === Fish ==
|
||||||
# Remove motd
|
# Remove motd
|
||||||
|
@ -103,7 +103,7 @@ main() {
|
||||||
fish -c "fisher install jorgebucaran/autopair.fish"
|
fish -c "fisher install jorgebucaran/autopair.fish"
|
||||||
# SSH
|
# SSH
|
||||||
wget -q https://gitlab.com/kyb/fish_ssh_agent/raw/master/functions/fish_ssh_agent.fish -P "$HOME"/.config/fish/functions/
|
wget -q https://gitlab.com/kyb/fish_ssh_agent/raw/master/functions/fish_ssh_agent.fish -P "$HOME"/.config/fish/functions/
|
||||||
mkdir "$HOME"/.ssh
|
mkdir -p "$HOME"/.ssh
|
||||||
# Custom config.fish
|
# Custom config.fish
|
||||||
wget -q ${repo}/.config/fish/config_wsl.fish -O "$HOME"/.config/fish/config.fish
|
wget -q ${repo}/.config/fish/config_wsl.fish -O "$HOME"/.config/fish/config.fish
|
||||||
# Fish theme
|
# Fish theme
|
||||||
|
@ -124,7 +124,7 @@ main() {
|
||||||
fish -c "set -Ux EDITOR nano"
|
fish -c "set -Ux EDITOR nano"
|
||||||
|
|
||||||
# === Micro configuration ==
|
# === Micro configuration ==
|
||||||
mkdir "$HOME"/.config/micro
|
mkdir -p "$HOME"/.config/micro
|
||||||
wget -q --show-progress ${repo}/.config/micro/settings.json -O "$HOME"/.config/micro/settings.json
|
wget -q --show-progress ${repo}/.config/micro/settings.json -O "$HOME"/.config/micro/settings.json
|
||||||
micro -plugin install detectindent
|
micro -plugin install detectindent
|
||||||
|
|
||||||
|
@ -164,7 +164,7 @@ main() {
|
||||||
|
|
||||||
# === Python ==
|
# === Python ==
|
||||||
# Add PIP packages from Python
|
# Add PIP packages from Python
|
||||||
mkdir "$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 | true"
|
||||||
|
|
||||||
# === OCaml ==
|
# === OCaml ==
|
||||||
|
@ -187,7 +187,7 @@ main() {
|
||||||
fish -c "set -Ux DEBUGINFOD_URLS https://debuginfod.archlinux.org"
|
fish -c "set -Ux DEBUGINFOD_URLS https://debuginfod.archlinux.org"
|
||||||
|
|
||||||
# === Unison ==
|
# === Unison ==
|
||||||
mkdir "$HOME"/.unison
|
mkdir -p "$HOME"/.unison
|
||||||
wget -q ${repo}/.unison/default.prf -O "$HOME"/.unison/default.prf
|
wget -q ${repo}/.unison/default.prf -O "$HOME"/.unison/default.prf
|
||||||
|
|
||||||
# === Perl ==
|
# === Perl ==
|
||||||
|
@ -195,8 +195,8 @@ main() {
|
||||||
fish -c "fish_add_path /usr/bin/vendor_perl | true"
|
fish -c "fish_add_path /usr/bin/vendor_perl | true"
|
||||||
|
|
||||||
# === Emacs ==
|
# === Emacs ==
|
||||||
mkdir "$HOME"/.emacs.d
|
# mkdir -p "$HOME"/.emacs.d
|
||||||
wget -q ${repo}/.emacs.d/init.el -O "$HOME"/.emacs.d/init.el
|
# wget -q ${repo}/.emacs.d/init.el -O "$HOME"/.emacs.d/init.el
|
||||||
|
|
||||||
# === Bash VSCode fix ==
|
# === Bash VSCode fix ==
|
||||||
curl -s ${repo}/dotfiles/.bashrc >> "$HOME"/.bashrc
|
curl -s ${repo}/dotfiles/.bashrc >> "$HOME"/.bashrc
|
||||||
|
|
Loading…
Reference in a new issue