[lug] newgrp and aliases

Davide Del Vento davide.del.vento at gmail.com
Wed Jan 16 14:50:30 MST 2013


You are so cool, Jeffrey :-)

I just made it slightly smarter

wanted_group=<string-of-wanted-group>
my_current_group=`id -g -n`
if [[ $my_current_group != $wanted_group ]]; then
  #rest-of my bash_profile so it doesn't get executed twice
  newgrp - $wanted_group
fi



More information about the LUG mailing list