mirror of
https://github.com/dnlbauer/dotfiles.git
synced 2026-09-10 13:35:30 +00:00
37 lines
959 B
Bash
Executable File
37 lines
959 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if ! type zsh > /dev/null; then
|
|
echo "Cannnot change default shell to zsh: not installed"
|
|
else
|
|
# Make ZSH the default shell environment
|
|
if [ $(cat /etc/passwd | grep $USER | awk -F ':' '{print substr($7, length($7)-3)}') != "/zsh" ]; then
|
|
echo "Changing shell to zsh"
|
|
chsh -s $(which zsh)
|
|
fi
|
|
|
|
# Antidote Installation
|
|
if [ ! -d "$HOME/.antidote" ]; then
|
|
echo "Installing antidote"
|
|
|
|
# make sure git is installed
|
|
if ! type git > /dev/null; then
|
|
echo "Git not installed. Cannot install antidote"
|
|
else
|
|
git clone --depth=1 https://github.com/mattmc3/antidote.git $HOME/.antidote
|
|
fi
|
|
|
|
else
|
|
echo "antidote already exists."
|
|
fi
|
|
fi
|
|
|
|
|
|
# vundle
|
|
if [ ! -d "$HOME/.vim/bundle" ]; then
|
|
echo "setup vundle"
|
|
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
|
|
fi
|
|
|
|
# linking dotfiles
|
|
$HOME/.dotfiles/dotfiles.sh link base
|