Tmux config seems like it probably solved things. Wondering if I outta put a line in there to automatically source the tmux config. Still can't believe I've went this long without needing to muck with the tmux config at all. I wonder how life will be different now, hopefully better.
36 lines
607 B
Bash
Executable file
36 lines
607 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 tmux vim zsh
|
|
|
|
if [[ `uname` == Darwin ]]; then
|
|
stow macos
|
|
fi
|
|
|
|
cd "$HOME" || exit
|
|
rm -f "${HOME}/.zcompdump*"
|
|
|
|
echo
|
|
echo "ENJOY! :)"
|