Adds import script and uses a shared list of the files to copy.

This commit is contained in:
2026-09-03 13:19:17 -07:00
parent 636128e2f1
commit c4b1af44b9
3 changed files with 44 additions and 7 deletions

View File

@@ -1,7 +1,13 @@
#! /usr/bin/env sh
cp .gitconfig .gitignore .gitignore_global ../
cp .hgignore_global ../
cp .profile ../
cp .bash_logout .bashrc ../
cp -r .zsh_functions .zprofile .zshenv .zshrc ../
cp -r .rc.d ../
#!/usr/bin/env bash
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "$SCRIPT_DIR/files.sh"
cd "$SCRIPT_DIR" || exit 1
for file in "${FILES[@]}"; do
if [ -e "./$file" ] || [ -L "./$file" ]; then
cp -r "./$file" ../
fi
done