summaryrefslogtreecommitdiff
path: root/bin/dot
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2016-04-09 17:19:49 +0100
committerUrbain Vaes <urbain@vaes.uk>2016-04-09 17:19:49 +0100
commitc8fb4a598c6067944d4d4ea3c13856f28167f4e7 (patch)
tree4cf5e67f506604457c9513f69218b95f401ac074 /bin/dot
parent28969c5dee61c2b6108965be7dec7cab38247063 (diff)
Use environment variable in dotfiles
Diffstat (limited to 'bin/dot')
-rwxr-xr-xbin/dot2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/dot b/bin/dot
index 0049e9c..acb0e64 100755
--- a/bin/dot
+++ b/bin/dot
@@ -40,7 +40,7 @@ save()
{
echo "declare -A dotmap" > .dotmap
get_links | while read link; do
- echo "dotmap[$link]=$(realpath -q $link)" >> .dotmap
+ echo "dotmap[$link]=$(readlink -f -q $link)" | sed "s#$HOME#"'$HOME#g' >> .dotmap
done
sort .dotmap -o .dotmap
}