comparison .bashrc @ 649:fbfc02ea7d8e

make our menu generator slightly less vulgar
author Jeff Hammel <k0scist@gmail.com>
date Sat, 22 Mar 2014 01:15:26 -0700
parents c6d3bfb2a21c
children 66a7729aa049
comparison
equal deleted inserted replaced
648:c6d3bfb2a21c 649:fbfc02ea7d8e
616 if [ -e "${COGNET_BASHRC}" ] 616 if [ -e "${COGNET_BASHRC}" ]
617 then 617 then
618 . ${COGNET_BASHRC} 618 . ${COGNET_BASHRC}
619 fi 619 fi
620 620
621 if type deactivate &> /dev/null
622 then
623 deactivate
624 fi
625
621 ### regenerate fluxbox menus here for convenience 626 ### regenerate fluxbox menus here for convenience
622 if type deactivate &> /dev/null
623 then
624 deactivate
625 fi
626 MENU=~/web/site/programs.html 627 MENU=~/web/site/programs.html
627 regeneratefluxmenu() { 628 regeneratefluxmenu() {
628 if [ -e $MENU ] 629 if [ -e "${MENU}" ]
629 then 630 then
630 # XXX could be safer 631 html2flux.py "${MENU}" -o ~/.fluxbox/applications
631 # XXX ...along with the fluxbox menu option o_O
632 html2flux.py $MENU > ~/.fluxbox/applications
633 fi 632 fi
634 } 633 }
635 regeneratefluxmenu 634 regeneratefluxmenu