-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
executable file
·52 lines (46 loc) · 2.43 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
#!/bin/bash
create_symlinks() {
# Get the directory in which this script lives.
script_dir=$(dirname "$(readlink -f "$0")")
# Get a list of all files in this directory that start with a dot.
files=$(find -maxdepth 1 -type f -name ".*")
# Create a symbolic link to each file in the home directory.
for file in $files; do
name=$(basename $file)
echo "Creating symlink to $name in home directory."
rm -rf ~/$name
ln -s $script_dir/$name ~/$name
done
}
zshrc() {
echo "==========================================================="
echo " enable backports for git "
echo "-----------------------------------------------------------"
echo deb http://deb.debian.org/debian buster-backports main | tee /etc/apt/sources.list.d/buster-backports.list
echo "==========================================================="
echo " update apt "
echo "-----------------------------------------------------------"
apt update
echo "==========================================================="
echo " upgrade git "
echo "-----------------------------------------------------------"
apt install -t buster-backports -y git
echo "==========================================================="
echo " install zsh "
echo "-----------------------------------------------------------"
rm /etc/zsh/zlogin
apt install -y zsh
echo "==========================================================="
echo " install ohmyzsh "
echo "-----------------------------------------------------------"
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
echo "==========================================================="
echo " cloning powerlevel10k "
echo "-----------------------------------------------------------"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
echo "==========================================================="
echo " import configs "
echo "-----------------------------------------------------------"
create_symlinks
}
zshrc