From c8fb4a598c6067944d4d4ea3c13856f28167f4e7 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sat, 9 Apr 2016 17:19:49 +0100 Subject: Use environment variable in dotfiles --- bin/dot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/dot') 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 } -- cgit v1.2.3