This repository has been archived on 2026-02-02. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
dotfiles/bin/dotfiles-init

26 lines
566 B
Bash
Executable file

#!/usr/bin/env bash
set -e
OS=$(uname -s | tr A-Z a-z)
if [ -d ~/dotfiles ]; then
echo "[DOTFILES] Detected: moving to correct location"
mv -nv ~/dotfiles/* ~
mv -nv ~/dotfiles/.* ~
rmdir ~/dotfiles
fi
if [ -x "$(which vim)" -a -e ~/.vim/bundle ]; then
echo "[VIM] Detected: initialising Vim bundle"
git submodule init
git submodule update
echo "[VIM] Upgrading plugins"
~/bin/vim-upgrade
fi
if [ -x "$(which ansible)" ]; then
echo "[ANSIBLE] Running desktop installation and configuration"
ansible-playbook ~/.ansible/desktop.yaml -K
fi