You've already forked dotfiles
files, changing up the plugins and settings to remove stale setups and to reduce the loading time by nearly half
36 lines
1.1 KiB
Bash
Executable File
36 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"
|
|
["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.lua"]="$HOME/.config/wezterm/wezterm.lua"
|
|
# ["wezterm.local_linux.lua"]="$HOME/.config/wezterm/local.lua"
|
|
["npmrc"]="$HOME/.npmrc"
|
|
)
|
|
|
|
declare -a config_directories=(
|
|
"$HOME/.config/nvim"
|
|
"$HOME/.config/wezterm"
|
|
)
|
|
|
|
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
|