-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·23 lines (23 loc) · 890 Bytes
/
install.sh
File metadata and controls
executable file
·23 lines (23 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
if [ ! -e ~/feginconf.sh ];
then
echo "This server is not setup yet. The configurations will be soft linked to ~."
echo ""
git clone https://github.com/ohmyzsh/ohmyzsh && mv ohmyzsh ~/.oh-my-zsh
git clone https://github.com/rupa/z && mv z/z.sh ~/z.sh
rm -rf z
cp ./candy.zsh-theme ~/.oh-my-zsh/themes
cp ${SCRIPT_DIR}/tmux.conf ~/.tmux.conf
cp ${SCRIPT_DIR}/vim/vimrc ~/.vimrc
cp ${SCRIPT_DIR}/zshrc ~/.zshrc
cp ${SCRIPT_DIR}/gitconfig ~/.gitconfig
mkdir -p ~/.vim/bundles
# shellcheck disable=SC2046
curl https://raw.githubusercontent.com/Shougo/dein.vim/master/bin/installer.sh > installer.sh
sh installer.sh ~/.vim/bundles > /dev/null && rm installer.sh
vim +"call dein#install()" +qall
echo ""
echo "FeginConf is installed"
else
echo "This server has already setup."
fi