aboutsummaryrefslogtreecommitdiff
path: root/fix-dotfile-paths.sh
diff options
context:
space:
mode:
Diffstat (limited to 'fix-dotfile-paths.sh')
-rwxr-xr-xfix-dotfile-paths.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/fix-dotfile-paths.sh b/fix-dotfile-paths.sh
index dd8085b..17ed045 100755
--- a/fix-dotfile-paths.sh
+++ b/fix-dotfile-paths.sh
@@ -3,9 +3,12 @@
create_ls_entry () {
echo "#+title: =~/$1=" > index.org
echo "* Directories" >> index.org
+ if [ "$1" != "" ]; then
+ echo "- [[https://jjanzen.ca/dotfiles/$1..][../]]" >> index.org
+ fi
find -- . -maxdepth 1 -type d | sed '/^\.$/d' | sed 's/^\.\///' | while read -r dir; do
if [ "${dir}" != "*" ]; then
- echo "- [[https://jjanzen.ca/dotfiles/$1${dir}][${dir}]]" >> index.org
+ echo "- [[https://jjanzen.ca/dotfiles/$1${dir}][${dir}/]]" >> index.org
fi
done
echo "* Files" >> index.org