-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·24 lines (21 loc) · 812 Bytes
/
setup.sh
File metadata and controls
executable file
·24 lines (21 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env bash
declare -r GITHUB_REPOSITORY="geraldbaeck/dotfiles"
cd ~
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Create the necessary symbolic links between the `.dotfiles` and `HOME`
# directory.
shopt -s dotglob # include hidden files
for f in bash/*; do
ln -fs "${PWD}/${f}" "${HOME}/`basename ${f}`" # create symlink
echo " `basename ${f}` symlinked to "
echo " ${PWD}/${f}"
done
for f in git/*; do
ln -fs "${PWD}/${f}" "${HOME}/`basename ${f}`" # create symlink
echo " `basename ${f}` symlinked to "
echo " ${PWD}/${f}"
done
gcp -asf "$(PWD)/projects/dotfiles/ssh/"* ~/.ssh/
gcp -asf "$(PWD)/projects/dotfiles/config/"* ~/.config/
sudo ln -fs "${PWD}/bin" "${HOME}/Library/" # symlink to ~/Library/bin for custom scripts
echo "Linking done."