-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·35 lines (28 loc) · 802 Bytes
/
install.sh
File metadata and controls
executable file
·35 lines (28 loc) · 802 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
#!/bin/sh
source ./install/macos.sh
source ./install/homebrew.sh
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# # Switch the shell to zsh
sudo chsh -s /bin/zsh
compaudit | xargs chmod g-w
# Set dotfiles
for name in *; do
target="$HOME/.$name"
if [ -e "$target" ]; then
if [ ! -L "$target" ]; then
echo "WARNING: $target exists but is not a symlink."
fi
else
if [ "$name" != 'install.sh' ] &&
[ "$name" != 'install' ] &&
[ "$name" != 'nvim' ] &&
[ "$name" != 'README.md' ]; then
echo "Creating $target"
ln -s "$PWD/$name" "$target"
fi
fi
done
find bin -type f -exec chmod +x {} \;
# Setup NeoVim
git clone --depth 1 https://github.com/wbthomason/packer.nvim\
~/.local/share/nvim/site/pack/packer/start/packer.nvim