update backup.sh

This commit is contained in:
DefectingCat
2023-12-05 16:55:55 +08:00
parent eba359e982
commit f610267874
2 changed files with 38 additions and 1 deletions

View File

@ -6,7 +6,7 @@ RUN pacman -Syu --noconfirm \
ARG USER=xfy
RUN useradd --groups wheel --no-create-home --shell /bin/zsh ${USER} \
&& echo "${USER} ALL=(ALL) NOPASSWD:ALL" >/etc/sudoers.d/${USER} \
&& chmod 0440 /etc/sudoers.d/${USER} \
&& chmod 0440 /etc/sudoers.d/${USER} \
&& usermod -s "$(which zsh)" ${USER}
USER ${USER}
WORKDIR /home/${USER}

37
scripts/backup.sh Executable file
View File

@ -0,0 +1,37 @@
#!/bin/bash
source ./scripts/bash.sh
# neovim
backup_folder ~/.config/nvim/lua/custom ./nvim/lua/ ./nvim/lua/custom/
# kitty
backup_folder ~/.config/kitty ./ ./kitty/
# neofetch
backup_folder ~/.config/neofetch ./ ./neofetch/
# zshrc
backup_folder ~/.zshrc ./zsh/zshrc
# ranger
backup_folder ~/.config/ranger ./ ./ranger/
# tmux
backup_folder ~/.tmux/tmux.conf ./tmux/ ./tmux/tmux.conf
# bash scripts
backup_folder ~/.config/rua-scripts ./
# lazygit
backup_folder ~/.config/lazygit ./ ./lazygit/
if [[ $OSTYPE == "darwin"* ]]; then
# yabai
backup_folder ~/.config/yabai ./ ./yabai/
# skhd
backup_folder ~/.config/skhd ./ ./skhd/
# sketchybar
backup_folder ~/.config/sketchybar ./ ./sketchybar/
fi