Files
dotfiles/deploy.sh
FaultyBranches 36c3852bc3 refactor: Moving the wezterm local file linux cursor fix into the main
config file, fixing treesitter folding (maybe) and removing the old
attempt at a fix, slight fixes to formatting in other files.
2026-03-31 15:56:08 -05:00

37 lines
1.1 KiB
Bash
Executable File

#!/usr/bin/env bash
# Deployment script for dotfiles
#
# WARNING: This script _will_ clobber existing files by force linking
# Relative path/name as keys, destination path as values
declare -A configs=(
["zsh/zshrc"]="$HOME/.zshrc"
["zsh/zsh_functions"]="$HOME/.config/zsh/zsh_functions.zsh"
["zsh/zsh_aliases"]="$HOME/.config/zsh/zsh_aliases.zsh"
["zsh/zsh_exports"]="$HOME/.config/zsh/zsh_exports.zsh"
["zsh/fb-custom.zsh-theme"]="$HOME/.oh-my-zsh/custom/themes"
["nvim/init.lua"]="$HOME/.config/nvim/init.lua"
["nvim/lua"]="$HOME/.config/nvim/"
["nvim/after"]="$HOME/.config/nvim/"
["nvim/snippets"]="$HOME/.config/nvim/"
["tmux.conf"]="$HOME/.tmux.conf"
["wezterm/wezterm.lua"]="$HOME/.config/wezterm/wezterm.lua"
["npmrc"]="$HOME/.npmrc"
)
declare -a config_directories=(
"$HOME/.config/nvim"
"$HOME/.config/wezterm"
"$HOME/.config/zsh"
)
for dir in ${config_directories[@]}; do
mkdir -p ${dir}
done
for dotfile in "${!configs[@]}"; do
echo "Deploying $PWD/${dotfile} to ${configs[$dotfile]}"
ln -fs "$PWD/${dotfile}" "${configs[$dotfile]}"
done