From: Samir Benmendil Date: Sun, 9 Jun 2013 22:30:05 +0000 (+0200) Subject: Merge branch 'master' of tardis:/dotfiles X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/7cdf46c8f226e6b25c4a34d85a2a64d0750a5a95?hp=4c44c5775e4b76d5101768d0880eda059ea3c2fc Merge branch 'master' of tardis:/dotfiles --- diff --git a/bin/clean-hunspell b/bin/clean-hunspell new file mode 100755 index 0000000..625e4c3 --- /dev/null +++ b/bin/clean-hunspell @@ -0,0 +1,11 @@ +#!/bin/bash + +# make sure to only remove symlinks and unneeded dicts +keep_dicts=('de_DE' 'fr_FR' 'en_US' 'en_GB') +dicts="$(ls /usr/share/hunspell/* /usr/share/myspell/dicts/*)" + +for keep_dict in ${keep_dicts[@]}; do + dicts=$(echo $dicts | sed "s/\S*${keep_dict}\S* //g") +done + +sudo rm ${dicts[@]}