TIP: Easily change less filenames that need to be imported

Hi folks,
use this if you ever run in trouble by adding a theme’s less files and they all need to be imported. (E.g. when you have over 10-20 less files that need to be @imported):

for file in *.less; do mv $file ${file%.less}.import.less; done

It renames all less files in the current directory to BASENAME.import.less

Tested with /bin/zsh
:smile:

Cool, Thanks for the tip cyruxx

1 Like