-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
try linking symlink files on every updot
This might be pretty repetitive, but it's fine enough as far as I'm concerned. It's not like running updot is something that's going to happen all the time (like several times a day), _and_ it's not like updot isn't already pretty repetitive, with the output from brew bundle and all that.
- Loading branch information
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
cd "$(dirname "$0")/.." | ||
# need to get the canonical path, not just ~/.dotfiles | ||
DOTFILES_ROOT=$(pwd -P) | ||
|
||
source "$DOTFILES_HOME/script/helpers/printing.sh" | ||
source "$DOTFILES_HOME/script/helpers/linking.sh" | ||
|
||
link_dotfiles () { | ||
info 'linking dotfiles' | ||
|
||
local overwrite_all=false backup_all=false skip_all=false | ||
|
||
for src in $(find $DOTFILES_ROOT -name '*.symlink' -type f) | ||
do | ||
dst="$HOME/.$(basename ${src%.symlink})" | ||
link_file $src $dst | ||
done | ||
} | ||
|
||
link_dotfiles |