blob: 3fc30aca292b3a746c6c28e4374235d6e70f31f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#!/usr/bin/env zsh
source util
dry="0"
while [[ $# -gt 0 ]]; do
if [[ "$1" == "--dry" ]]; then
dry="1"
fi
shift
done
cd $target/dotfiles
log "Copying Scripts"
if [[ "$(uname -s)" == "Darwin" ]]; then
scripts="$(find ./scripts -maxdepth 1 -mindepth 1 -perm +111 -type f)"
else
scripts="$(find ./scripts -maxdepth 1 -mindepth 1 -executable -type f)"
fi
for script in $scripts; do
log $script
copy_file "$script" "$target/bin"
done
configs="$(find ./.config -mindepth 1 -maxdepth 1 -type d)"
for config in $configs; do
log $config
copy_dir $config "$HOME/.config"
done
log "Copying Configs"
copy_dir .emacs.d $HOME
copy_file ".config/.profile" $HOME
copy_file ".config/shells/zsh/.zshrc" $HOME
log "Copying Self to ~/personal/bin"
copy_file dev-env $target/bin
copy_file util $target/bin
log "Setting Up Symlinks"
execute ln -sf $HOME/.profile $HOME/.zprofile
|