-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpull.sh
More file actions
executable file
·45 lines (35 loc) · 735 Bytes
/
pull.sh
File metadata and controls
executable file
·45 lines (35 loc) · 735 Bytes
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
41
42
43
44
45
#!/bin/bash
home_dir="$HOME/"
target_dir="./dotfiles"
dot_files=(".bashrc" ".gitconfig")
for i in "${dot_files[@]}"; do
dir=$(readlink -f "$home_dir$i")
target="$target_dir"
mkdir -p $target
echo "Copying from $dir to $target"
cp -r "$dir" "$target_dir"
done
config_dir="$home_dir.config/"
config_dirs=(
"sway"
"swaync"
"waybar"
"swaylock"
"rofi"
"kitty"
"zed"
"swayosd"
"swappy"
"xdg-desktop-portal"
"enviroment.d"
"nvim"
"lazygit"
)
for i in "${config_dirs[@]}"; do
dir=$(readlink -f "$config_dir$i")
target="$target_dir/.config"
mkdir -p $target
echo "Copying from $dir to $target"
cp -r "$dir" "$target"
done
./scripts/create_syslink.sh