-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·30 lines (22 loc) · 1.08 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
#!/usr/bin/env bash
# Get the directory where the script file is located
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
# Loop through all files and directories in the script directory
for rcfile in $SCRIPT_DIR/*/*; do
# Get the filename of the current file
filename=$(basename "$rcfile")
# Remove any existing configuration file with the same name in the user's home directory
rm -r $HOME/.$filename
# Create a symbolic link to the file found in the user's home directory
ln -sf $rcfile $HOME/.$filename
done
# Remove any existing zprezto configuration in the user's home directory
rm -rf ~/.zprezto
# Clone the zprezto repository from GitHub into the user's home directory
git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
# Update all submodules (vim packages) in the zprezto repository
git submodule update --init --recursive
wget -O Miniforge3.sh "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh" -O miniforge.sh
bash miniforge.sh -b -p ${HOME}/.miniforge
rm miniforge.sh
exec zsh