dotfiles/backup.sh

42 lines
1 KiB
Bash
Raw Normal View History

2023-10-08 22:26:07 -05:00
#!/usr/bin/env bash
GIT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
rm -rf $GIT_DIR/fish
cp -r $HOME/.config/fish/ $GIT_DIR
mv $GIT_DIR/fish/conf.d/universal.fish $GIT_DIR/universal-shellrc.txt
2023-11-20 00:48:36 -06:00
# kitty
rm -rf $GIT_DIR/kitty
2023-10-08 22:26:07 -05:00
cp -r $HOME/.config/kitty/ $GIT_DIR
cp -r $HOME/.config/nvim/ $GIT_DIR
2023-11-14 11:41:09 -06:00
cp -r $HOME/.config/VencordDesktop/VencordDesktop/ $GIT_DIR
2023-11-20 00:48:36 -06:00
# nvim
rm -rf $GIT_DIR/nvim
cp -r $HOME/.config/nvim/ $GIT_DIR
# gpg
rm -rf $GIT_DIR/gnupg
mkdir $GIT_DIR/gnupg
cp $HOME/.gnupg/gpg.conf $GIT_DIR/gnupg/
cp $HOME/.gnupg/gpg-agent.conf $GIT_DIR/gnupg/
2023-11-20 00:48:36 -06:00
# Vesktop
rm -rf $GIT_DIR/VencordDesktop
cp -r $HOME/.config/VencordDesktop/VencordDesktop/ $GIT_DIR
# VS code
2023-11-20 00:48:36 -06:00
rm -rf $GIT_DIR/vscode
mkdir $GIT_DIR/vscode
code --list-extensions >$GIT_DIR/vscode/extensions.txt
cp $HOME/.config/Code/User/keybindings.json ./vscode/keybindings.json
cp $HOME/.config/Code/User/settings.json ./vscode/settings.json
2023-11-20 00:48:36 -06:00
# i3
rm -rf $GIT_DIR/i3
cp -r $HOME/.config/i3/ .
# sway
rm -rf $GIT_DIR/sway
cp -r $HOME/.config/sway/ .