Adds import script and uses a shared list of the files to copy.
This commit is contained in:
20
install.sh
20
install.sh
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user