Files
dotfiles/BOOTSTRAP.sh
2024-10-19 13:34:00 -05:00

57 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
CONFIGDIR=$HOME/.config
#############################
# zsh
#############################
ZSHFILE="$HOME/.zshrc"
if [ -f "$ZSHFILE" ] || [ -d "$ZSHFILE" ]; then
mv "$ZSHFILE" "$ZSHFILE.old"
fi
ln -s "$PWD/zsh/.zshrc" "$ZSHFILE"
POSHDIR="$HOME/.config/ohmyposh"
if [ -f "$POSHDIR" ] || [ -d "$POSHDIR"]; then
mv "$POSHDIR" "$POSHDIR.old"
fi
ln -s "$PWD/zsh/ohmyposh/" "$POSHDIR"
#############################
# kitty
#############################
KITTYDIR="$CONFIGDIR/kitty"
if [ -f "$KITTYDIR" ] || [ -d "$KITTYDIR" ]; then
mv "$KITTYDIR" "$KITTYDIR.old"
fi
ln -s "$PWD/kitty/" "$KITTYDIR"
#############################
# neovim
#############################
NEOVIMFILE="$CONFIGDIR/nvim"
if [ -f "$NEOVIMFILE" ] || [ -d "$NEOVIMFILE" ]; then
mv "$NEOVIMFILE" "$NEOVIMFILE.old"
fi
ln -s "$PWD/nvim/" "$NEOVIMFILE"
#############################
# tmux
#############################
TMUXFILE="$CONFIGDIR/tmux"
if [ -f "$TMUXFILE" ] || [ -d "$TMUXFILE" ]; then
mv "$TMUXFILE" "$TMUXFILE.old"
fi
git clone https://github.com/tmux-plugins/tpm ./tmux/plugins/tpm
ln -s "$PWD/tmux/" "$TMUXFILE"