diff options
Diffstat (limited to 'metadot')
-rwxr-xr-x | metadot | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -174,4 +174,11 @@ elif [ "$OPT" == "load" ]; then metadot_load $module done echo "Backups saved at $BACKUPS." +elif [ "$OPT" == "list" ]; then + # Complete, slow version + #find $HOME -lname '*.dotfiles*' -exec ls -la {} | \ + #grep .dotfiles/modules | sed -e 's|.*.dotfiles/||g' | cut -d '/' -f 2 | sort | uniq + + # Simpler version + ls -ag $HOME/ | grep .dotfiles/modules | sed -e 's|.*.dotfiles/||g' | cut -d '/' -f 2 | sort | uniq fi |