aboutsummaryrefslogtreecommitdiff
path: root/fix-dotfile-paths.sh
diff options
context:
space:
mode:
Diffstat (limited to 'fix-dotfile-paths.sh')
-rwxr-xr-xfix-dotfile-paths.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/fix-dotfile-paths.sh b/fix-dotfile-paths.sh
index 450d1c2..ae5162e 100755
--- a/fix-dotfile-paths.sh
+++ b/fix-dotfile-paths.sh
@@ -16,6 +16,10 @@ create_ls_entry () {
if [ "$files" != '' ]; then
echo '* Files' >> index.org
echo "$files" | sort | while read -r file; do
+ if echo $file | grep -q '^\.'; then
+ tmp=$(echo "$file" | sed 's/^\.//' | sed 's/$/.hidden/')
+ mv $file $tmp
+ fi
if [ "$file" = ".wallpaper" ]; then
echo "- [[https://wallhaven.cc/w/vgryy5][=.wallpaper=]]" >> index.org
elif echo "$file" | grep -q "\.org$" && [ "$file" != "index.org" ]; then