-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
29 lines (23 loc) · 740 Bytes
/
install.sh
File metadata and controls
29 lines (23 loc) · 740 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
#!/bin/sh
set -eu
# download
git clone https://github.com/keidrun/dotfiles
cd dotfiles
# setup prezto for zsh
rm ~/.zshrc
git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
setopt EXTENDED_GLOB
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
done
# setup zsh
cat ./.zshrc >> ~/.zshrc
echo "# Instead of the end of ~/.zshrc for starship theme" >> ~/.zlogin
echo 'eval "$(starship init zsh)"' >> ~/.zlogin
# set environments for install
RESET_DOTS=$(find . -name "reset-dotfiles.sh")
VIM_INSTALL=$(find . -name "vim-install-packages.sh")
# install dotfiles
bash "$RESET_DOTS"
# install vim packages
bash "$VIM_INSTALL"