extracted spacem to file, new spacemall alias
[feisty_meow.git] / scripts / core / common.alias
index cd08c8ab49f30c610d9ef40e0618180d5e127337..ec290f2323fa67e23454f89f66ccf1142b5fd06f 100644 (file)
 
 ##############
 
+# make our functions available to the aliases.
+#hmmm: should this be necessary?  will it even work?
+source "$FEISTY_MEOW_SCRIPTS/core/functions.sh"
+
+##############
+
 # call the generated aliases file, if it exists.
 # we do this first so that our core aliases get a chance to override the aliases
 # based on scripts.
@@ -135,7 +141,8 @@ define_yeti_alias cputemp='acpi -t'
 define_yeti_alias reroot='chown -R root:root /root'
 
 # space 'em all fixes naming for all of the files of the appropriate types in the current directory.
-define_yeti_alias spacemall='spacem *.txt *.pdf *.jpg *.png *.odt *.ods *.JPG *.docx *.m4a *.mp3 *.eml *.html 2>> ~/.tmp/zz_spacem.log'
+define_yeti_alias spacemall="find .  -maxdepth 1 -mindepth 1 -type f $(echo pdf png jpg jpeg odt ods docx m4a mp3 eml html mov pptx xlsx | sed -e 's/\([a-z0-9][a-z0-9]*\)/-iname \"*.\1\" -o /g') -iname \"*.txt\" -exec bash "$FEISTY_MEOW_SCRIPTS/files/spacem.sh" \"{}\" \; "
+#2>> ~/.tmp/zz_spacem.log'
 
 # yes, these what/who/why functions are really helpful...
 define_yeti_alias whoareyou='echo -e "Hello, I am a computer named $(hostname)\nand I am very pleased to meet you."'