-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
executable file
·23 lines (17 loc) · 1021 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env bash
declare -A colors=(
["default"]=`tput sgr 0`
["green"]=`tput setaf 2`
["cyan"]=`tput setaf 6`)
INSTALL_DIR=$HOME/.local/share/dotfiles
echo "${colors[cyan]}=> Installing plugin managers...${colors[default]}"
command curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
command curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh
echo "${colors[cyan]}=> Downloading dotfiles from git to '$INSTALL_DIR'...${colors[default]}"
command git -c advice.detachedHead=false clone --recursive \
https://github.com/gponsu/dotfiles.git --depth=1 "${INSTALL_DIR}"
echo "${colors[cyan]}=> Creating symbolic links to configuration files...${colors[default]}"
command ln -vsf $INSTALL_DIR/vimrc.conf $HOME/.config/nvim/init.vim
command ln -vsf $INSTALL_DIR/zshrc.conf $HOME/.zshrc
echo "${colors[green]}=> ✔ Completed, enjoy!${colors[default]}"