-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·56 lines (43 loc) · 1.3 KB
/
install.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#! /bin/bash
echo "Copying fastfetch configuration..."
cp -r ./fastfetch ~/.config/
echo "✓ Fastfetch configuration copied"
echo "Copying i3 configuration..."
cp -r ./i3 ~/.config/
echo "✓ i3 configuration copied"
echo "Removing current nvim config..."
rm -rf ~/.config/nvim/
echo "Copying nvim configuration..."
cp -r ./nvim ~/.config/
echo "✓ Neovim configuration copied"
echo "Copying picom configuration..."
cp -r ./picom/ ~/.config/
echo "✓ Picom configuration copied"
echo "Copying starship configuration..."
cp -r ./starship/starship.toml ~/.config/
echo "✓ Starship configuration copied"
echo "Copying wezterm configuration..."
cp ./wezterm/.wezterm.lua ~
echo "✓ Wezterm configuration copied"
echo "Change background (y/n)"
read answer
if [ "$answer" = "y" ] || [ "$answer" = "Y" ]; then
echo "Please enter path"
read image_path
image_path="${image_path/#\~/$HOME}"
if [ -f "$image_path" ]; then
echo "exec --no-startup-id feh --bg-scale $image_path" >> ~/.zshrc
echo "Background has been changed."
else
echo "File does not exist."
exit 1
fi
else
echo "No changes made."
fi
echo "Copying .zshrc configuration..."
cp ./zsh/.zshrc ~
echo "✓ .zshrc configuration copied"
echo "Sourcing .zshrc"
source ~.zshrc
echo "All configurations have been successfully copied!"