improved chaining of programs in bash scripts

This commit is contained in:
aminnairi
2025-11-11 13:44:23 +01:00
parent fc9b2f1dcf
commit c8cea20981
9 changed files with 101 additions and 94 deletions
+16 -15
View File
@@ -1,17 +1,18 @@
#!/bin/bash
ensure_package_is_installed fish \
&& ensure_package_is_installed eza \
&& ensure_package_is_installed bat \
&& ensure_package_is_installed fastfetch \
&& ensure_package_is_installed openvpn \
&& ensure_package_is_installed fzf \
&& synchronize_user_folder ./sources/fish ~/.config \
&& synchronize_user_folder ./sources/omf ~/.config \
&& synchronize_root_folder ./sources/fish /root/.config \
&& synchronize_root_folder ./sources/omf /root/.config \
&& ensure_git_folder_installed_for_user oh-my-fish/oh-my-fish ~/.local/share/omf \
&& ensure_git_folder_installed_for_user oh-my-fish/theme-agnoster ~/.local/share/omf/themes/agnoster \
&& ensure_git_folder_installed_for_root oh-my-fish/oh-my-fish /root/.local/share/omf \
&& ensure_git_folder_installed_for_root oh-my-fish/theme-agnoster /root/.local/share/omf/themes/agnoster \
&& ensure_shell_installed fish
ensure_package_is_installed fish &&
ensure_package_is_installed eza &&
ensure_package_is_installed bat &&
ensure_package_is_installed fastfetch &&
ensure_package_is_installed openvpn &&
ensure_package_is_installed fzf &&
synchronize_user_folder ./sources/fish ~/.config &&
synchronize_user_folder ./sources/omf ~/.config &&
synchronize_root_folder ./sources/fish /root/.config &&
synchronize_root_folder ./sources/omf /root/.config &&
ensure_git_folder_installed_for_user oh-my-fish/oh-my-fish ~/.local/share/omf &&
ensure_git_folder_installed_for_user oh-my-fish/theme-agnoster ~/.local/share/omf/themes/agnoster &&
ensure_git_folder_installed_for_root oh-my-fish/oh-my-fish /root/.local/share/omf &&
ensure_git_folder_installed_for_root oh-my-fish/theme-agnoster /root/.local/share/omf/themes/agnoster &&
ensure_shell_installed fish