diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-09-17 14:14:43 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-09-17 14:14:43 -0300 |
commit | 6f4ef50d2c7e73d6df5b9f426abaf26521e548e5 (patch) | |
tree | 2cc11e130911ce73fa159563fa145c2979adf70e /metadot | |
parent | 7842b6a46fbb9e18ec8ee09ac6361c862f7e3172 (diff) | |
download | metadot-6f4ef50d2c7e73d6df5b9f426abaf26521e548e5.tar.gz metadot-6f4ef50d2c7e73d6df5b9f426abaf26521e548e5.tar.bz2 |
List option
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 |