1 2 3 4 5
#!/bin/sh PROFILES=`grep 'Path=' ~/.mozilla/firefox/profiles.ini | cut -d'.' -f2` CHOSEN=`echo "$PROFILES" | barmenu -l 15` [ -z "$CHOSEN" ] && exit 2 firefox -P "$CHOSEN"