feat: add install function
This commit is contained in:
parent
85ac9a7fb4
commit
819cb9d4b9
1 changed files with 22 additions and 0 deletions
22
.zshrc.d/install_dotfiles.zsh
Normal file
22
.zshrc.d/install_dotfiles.zsh
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
install_dotfiles () {
|
||||||
|
echo "Installing stuff..."
|
||||||
|
# vim-plug
|
||||||
|
if ! [[ -f ~/.local/share/nvim/site/autoload/plug.vim ]]; then
|
||||||
|
echo "Dotfiles: Downloading vim-plug..."
|
||||||
|
if curl \
|
||||||
|
--fail \
|
||||||
|
--location \
|
||||||
|
--retry 5 \
|
||||||
|
--retry-delay 1 \
|
||||||
|
--create-dirs \
|
||||||
|
--progress-bar \
|
||||||
|
--output ~/.local/share/nvim/site/autoload/plug.vim \
|
||||||
|
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||||
|
then
|
||||||
|
echo "Dotfiles: Done"
|
||||||
|
else
|
||||||
|
echo "Dotfiles: Error downloading vim-plug"
|
||||||
|
dotfiles_install_error="yes"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue