diff --git a/arch.sh b/arch.sh index b029a12..f793c67 100644 --- a/arch.sh +++ b/arch.sh @@ -42,7 +42,7 @@ main() { makepkg -si --noconfirm # Remove folder cd .. - rm -rf paru + rm -rf paru ||: paru --gendb # Clean files used for compilation sudo sed -i "s/#CleanAfter/CleanAfter/g" /etc/paru.conf @@ -85,7 +85,7 @@ main() { # Fish theme fish -c "fish_config theme choose 'Base16 Eighties' && yes | fish_config theme save" # Fish prompt - rm "$HOME"/.config/fish/functions/fish_prompt.fish 2> /dev/null + rm "$HOME"/.config/fish/functions/fish_prompt.fish 2> /dev/null ||: wget -q ${repo}/.config/fish/functions/fish_prompt.fish -P "$HOME"/.config/fish/functions/ # EZA colors fish -c "set -Ux EXA_COLORS 'di=1;36:da=35'" @@ -136,7 +136,7 @@ main() { make sudo make install cd .. - rm -rf GL4Dummies + rm -rf GL4Dummies ||: # Fix for shared libraries (https://stackoverflow.com/a/9395355) sudo ldconfig # Add to path @@ -170,7 +170,7 @@ main() { # === Flameshot == # Custom configuration - rm "$HOME"/.config/flameshot/flameshot.ini 2> /dev/null + rm "$HOME"/.config/flameshot/flameshot.ini 2> /dev/null ||: wget -q --show-progress ${repo}/.config/flameshot/flameshot.ini -P "$HOME"/.config/flameshot/ # Change keybindings gsettings set org.gnome.shell.keybindings show-screenshot-ui "[]" @@ -189,7 +189,7 @@ main() { # === Emoji picker == # Custom configuration - rm "$HOME"/.config/gazatu.xyz/emoji-picker.ini 2>/dev/null + rm "$HOME"/.config/gazatu.xyz/emoji-picker.ini 2>/dev/null ||: wget -q --show-progress ${repo}/.config/gazatu.xyz/emoji-picker.ini -P "$HOME"/.config/gazatu.xyz/ # Add keybinding custom_keybindings_list=$(gsettings get org.gnome.settings-daemon.plugins.media-keys custom-keybindings) diff --git a/arch_wsl.sh b/arch_wsl.sh index aa8fd47..794b5fa 100644 --- a/arch_wsl.sh +++ b/arch_wsl.sh @@ -61,7 +61,7 @@ main() { makepkg -si --noconfirm # Remove folder cd .. - rm -rf paru + rm -rf paru ||: paru --gendb # Clean files used for compilation sudo sed -i "s/#CleanAfter/CleanAfter/g" /etc/paru.conf @@ -83,7 +83,7 @@ main() { curl -so PKGBUILD https://raw.githubusercontent.com/sorah/arch.sorah.jp/master/aur-sorah/PKGBUILDs/subsystemctl/PKGBUILD makepkg -si --noconfirm cd .. - rm -rf subsystemctl + rm -rf subsystemctl ||: sudo subsystemctl start # === Locales == @@ -110,7 +110,7 @@ main() { fish -c "fish_config theme choose 'Base16 Eighties' && yes | fish_config theme save" fish -c "set fish_color_comment 5c6773" # custom comment color # Fish prompt - rm "$HOME"/.config/fish/functions/fish_prompt.fish 2> /dev/null + rm "$HOME"/.config/fish/functions/fish_prompt.fish 2> /dev/null ||: wget -q ${repo}/.config/fish/functions/fish_prompt.fish -P "$HOME"/.config/fish/functions/ # EZA colors fish -c "set -Ux EXA_COLORS 'di=1;36:da=35'" @@ -137,7 +137,7 @@ main() { make sudo make install cd .. - rm -rf GL4Dummies + rm -rf GL4Dummies ||: # Fix for shared libraries (https://stackoverflow.com/a/9395355) sudo ldconfig # Add to path