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
+6 -5
View File
@@ -1,7 +1,8 @@
#!/bin/bash
ensure_package_is_installed tmux \
&& ensure_git_folder_installed_for_user tmux-plugins/tpm ~/.tmux/plugins/tpm \
&& ensure_git_folder_installed_for_root tmux-plugins/tpm /root/.tmux/plugins/tpm \
&& synchronize_user_folder ./sources/tmux/.tmux.conf ~/.config \
&& synchronize_root_folder ./sources/tmux/.tmux.conf /root/.config
ensure_package_is_installed tmux &&
ensure_git_folder_installed_for_user tmux-plugins/tpm ~/.tmux/plugins/tpm &&
ensure_git_folder_installed_for_root tmux-plugins/tpm /root/.tmux/plugins/tpm &&
synchronize_user_folder ./sources/tmux/.tmux.conf ~/.config &&
synchronize_root_folder ./sources/tmux/.tmux.conf /root/.config