feat(update-repo): also add fastfetch config, show status on Update_remote

This commit is contained in:
João Dias
2024-11-17 16:07:57 -03:00
parent 3043242b4c
commit fb57daa33d
2 changed files with 4 additions and 6 deletions
+4 -1
View File
@@ -1,6 +1,6 @@
#!/usr/bin/bash
HYPRLAND_DOTS_DIRS=("hypr" "swaync" "waybar" "anyrun" "wlogout" "wal")
HYPRLAND_DOTS_DIRS=("hypr" "swaync" "waybar" "anyrun" "wlogout" "wal" "fastfetch")
WALLPAPERS_DIR="$HOME/wallpapers"
printf "\n"
@@ -69,6 +69,7 @@ Check_existance() {
Update_local() {
for dotsDir in ${HYPRLAND_DOTS_DIRS[@]}; do
if [[ -d "$HOME/.config/$dotsDir" ]]; then
echo "-> Trying to copy ${dotsDir^}..."
cp -r $HOME/.config/$dotsDir ./$dotsDir
else
Send_log "warn" "Looks like the ~/.config/$dotsDir dir is in fault! Skipping it..."
@@ -84,6 +85,8 @@ Update_local() {
}
Update_remote() {
echo "Git status:"
/usr/bin/env git status
echo "Please type one of the dotfiles you want to push now(only one dir):"
ls --color=auto -d -- */
printf "Directory: "