mirror of
https://github.com/DefectingCat/dotfiles
synced 2025-07-15 16:51:36 +00:00
update backup.sh
This commit is contained in:
@ -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
37
scripts/backup.sh
Executable 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
|
Reference in New Issue
Block a user