-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.sh
More file actions
executable file
·37 lines (30 loc) · 1.05 KB
/
bootstrap.sh
File metadata and controls
executable file
·37 lines (30 loc) · 1.05 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
#!/bin/bash
if [[ $(uname) == "Linux" ]]; then
echo "Setting up as Linux"
current_dir=$(dirname $(readlink -f $0))
elif [[ $(uname) == "Darwin" ]]; then
echo "Setting up as Mac"
brew install coreutils
current_dir=$(dirname $(greadlink -f $0))
else
echo "What is this OS?"
exit 1
fi
echo "Downloading zsh-autosuggestions"
rm -rf .zsh/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions .zsh/zsh-autosuggestions
echo "Linking all dot files in ${current_dir} to ${HOME}"
ln -sfn ${current_dir}/.zsh ~/.zsh
ln -sfn ${current_dir}/.vim ~/.vim
ln -sf ${current_dir}/.bashrc ~/.bashrc
ln -sf ${current_dir}/.gitconfig ~/.gitconfig
ln -sf ${current_dir}/.gitattributes ~/.gitattributes
ln -sf ${current_dir}/.vimrc ~/.vimrc
ln -sf ${current_dir}/.zshrc ~/.zshrc
if [[ ! -f ${current_dir}/.custom ]]; then
echo "${current_dir}/.custom not found, so creating new one"
touch ${current_dir}/.custom
fi
ln -sf ${current_dir}/.custom ~/.custom
echo "Follow the sample file ${current_dir}/.custom.sample to add custom exports"
echo "done!"