-
Notifications
You must be signed in to change notification settings - Fork 0
/
backup.sh
executable file
·40 lines (32 loc) · 885 Bytes
/
backup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/zsh
# Create the .config dir if it doesn't exist
mkdir -p .config
# Alacritty
mkdir -p .config/alacritty
# Linux
if [ "$(uname)" == "Linux" ]; then
cp ~/.config/alacritty/alacritty.toml .config/alacritty/alacritty-linux.toml
fi
# macOS
if [ "$(uname)" == "Darwin" ]; then
cp ~/.config/alacritty/alacritty.toml .config/alacritty/alacritty-macos.toml
fi
# Conda
cp ~/.condarc .condarc
# Starship
cp ~/.config/starship.toml .config/starship.toml
# Tmux
cp ~/.tmux.conf .tmux.conf
# Zellij
# We need to make sure that the zellij dir is not copied into itself
# for that we need to remove the zellij dir from the zellij dir
rm -r .config/zellij
cp -r ~/.config/zellij .config/zellij
# Neovim
rm -r nvim/conf
cp -r ~/.config/nvim nvim/conf
#---------------------------------ZSH-------------------------------------
cd zsh
chmod +x ./backup.sh
sh ./backup.sh
cd ..