dotfiles/install
Josh Sherman 5efa8e898e
Drop Tmux config
Only added this crap because NeoVim was giving me crap. Tmux with it's
stock config hasn't done me wrong... that I know of.
2024-06-24 10:46:38 -05:00

36 lines
602 B
Bash
Executable file

#!/usr/bin/env bash
if [ -z "$HOME" ]; then
echo "Seems you're \$HOMEless :("; exit 1;
fi
COMMANDS="curl git stow"
for COMMAND in $COMMANDS; do
if ! command -v "$COMMAND" &> /dev/null; then
echo "Please install $COMMAND";
exit 1;
fi
done
DOTFILES=$HOME/.dotfiles
if [ ! -d "$DOTFILES" ]; then
git clone git@github.com:joshtronic/dotfiles.git "$DOTFILES"
cd "$DOTFILES" || exit
else
cd "$DOTFILES" || exit
git pull origin main
fi
stow git screen vim zsh
if [[ `uname` == Darwin ]]; then
stow macos
fi
cd "$HOME" || exit
rm -f "${HOME}/.zcompdump*"
echo
echo "ENJOY! :)"