Good idea. Done!


On 07-12-13 15:01, Mathias Bynens wrote:
>
> In .functions:
>
> > @@ -311,3 +311,14 @@ function np() {
> >  function tre() {
> >  	tree -aC -I '.git|node_modules|bower_components' --dirsfirst "$@" | less -FRNX
> >  }
> > +
> > +# sanitize filename: lowercase, no other characters than letters, digits, dash, underscore and dot
> > +function sanitize() {
> > +	for file in *; do
> > +		file_clean=`echo $file | tr '[:upper:]' '[:lower:]' | tr -cd "[:alnum:]-_."`
>
> Could you make this a |local| and also use |$()| syntax instead of the 
> backticks, for consistency with the other code in the file?
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/mathiasbynens/dotfiles/pull/307/files#r8181468>.
>