forked from nicknisi/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·39 lines (27 loc) · 801 Bytes
/
install.sh
File metadata and controls
executable file
·39 lines (27 loc) · 801 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
35
36
37
38
39
#!/usr/bin/env bash
command_exists() {
type "$1" > /dev/null 2>&1
}
echo "Installing dotfiles."
echo "Initializing submodule(s)"
git submodule update --init --recursive
source install/link.sh
source install/git.sh
# only perform macOS-specific install
if [ "$(uname)" == "Darwin" ]; then
echo -e "\\n\\nRunning on OSX"
source install/brew.sh
source install/osx.sh
fi
echo "creating vim directories"
mkdir -p ~/.vim-tmp
if ! command_exists zsh; then
echo "zsh not found. Please install and then re-run installation scripts"
exit 1
elif ! [[ $SHELL =~ .*zsh.* ]]; then
echo "Configuring zsh as default shell"
chsh -s "$(which zsh)"
fi
tic resources/xterm-256color-italic.terminfo
tic resources/tmux-256color-italic.terminfo
echo "Done. Reload your terminal."