forked from CoreyMSchafer/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
56 lines (45 loc) · 1.44 KB
/
Copy pathinstall.sh
File metadata and controls
56 lines (45 loc) · 1.44 KB
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
#!/usr/bin/env zsh
############################
# This script creates symlinks from the home directory to any desired dotfiles in $HOME/dotfiles
# And also installs MacOS Software
# And also installs Homebrew Packages and Casks (Apps)
# And also sets up VS Code
# And also sets up Oh My Zsh and Powerlevel10k
############################
# dotfiles directory
dotfiledir="${HOME}/dotfiles"
# list of files/folders to symlink in ${homedir}
files=(zshrc bashrc bash_profile bash_prompt aliases functions vimrc)
# change to the dotfiles directory
echo "Changing to the ${dotfiledir} directory"
cd "${dotfiledir}" || exit
# create symlinks (will overwrite old dotfiles)
for file in "${files[@]}"; do
echo "Creating symlink to ${file} in home directory."
ln -sf "${dotfiledir}/.${file}" "${HOME}/.${file}"
done
# Run the MacOS Script
./macOS.sh
# Run the Zsh Script
./zsh.sh
# Run the Homebrew Script
./brew.sh
# Run VS Code Script
./vscode.sh
# Manual installs from App Store
echo "---------------------------"
echo "| Install from App Store: |"
echo "---------------------------"
echo
echo " (1) BetterSnapTool (https://apps.apple.com/de/app/bettersnaptool/id417375580?mt=12)"
echo "Press enter to continue..."
read
echo " (4) Hidden Bar (https://apps.apple.com/de/app/hidden-bar/id1452453066?mt=12)"
echo "Press enter to continue..."
read
echo
echo "Copy your SSH config manually..."
echo "Press enter to continue..."
read
echo
echo "Installation Complete!"