fix install

This commit is contained in:
2026-04-02 09:51:51 +09:00
parent 4b90037313
commit 38399d05d8

View File

@@ -4,7 +4,7 @@
dotdir="${1:-$HOME/dotfiles}"
files=(.zshrc .vimrc .tmux.conf .gitconfig)
files=(.zshrc .vimrc .tmux.conf .gitconfig .config/karabiner/karabiner.json)
dirs=(.zsh .vim/plugin .tmux .local/bin .local/share/fonts)
# backup and symlink files
@@ -12,6 +12,7 @@ for f in "${files[@]}"; do
src="$dotdir/$f"
dst="$HOME/$f"
[ ! -f "$src" ] && continue
mkdir -p "$(dirname "$dst")"
if [ -e "$dst" ] && [ ! -L "$dst" ]; then
mv "$dst" "${dst}.bak"
echo "backup: $dst -> ${dst}.bak"