dotfiles/install.sh
Josh Sherman 7154e64e43
Add Karabiner-Elements and Zellij configs
Tossed karabiner inside of the macos directory. Starting to wonder if I
outta break that directory up, or if I outta double down and consolidate
around which system the files apply to.
2024-11-14 18:27:33 -06:00

38 lines
659 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 alacritty git nvim screen vim zellij zsh
if [[ `uname` == Darwin ]]; then
stow macos
fi
mkdir -p ~/.local/share/vim/undo/
cd "$HOME" || exit
rm -f "${HOME}/.zcompdump*"
echo
echo "ENJOY! :)"