I will make an effort to wear a kilt whenever I can but I know the majority of fellow Edinburghers (if that's what you call them) will continue as they are, wearing trousers/pants(pardon the offensive language here) if for no other reason than their place of work will require them to. They all have dress codes and while it may feel good to rebel it doesn't usually enhance your promotion prospects. Yes there is prejudice against kilts in many workplaces even here in Scotland in the same way there is against jeans and trainers too. We live in a society where one is very much judged on appearances still. I have now reached an age where I can proffer two fingers to such constraints whether that is fortunate or not I don't know but I do know there are many reasons preventing younger people wearing kilts on a day to day basis from peer pressure through to financial and career pressures.
Remember too that kilt-wearing was never the norm in Edinburgh or other large towns and at one time kilt wearing highlanders (teuchters) were regarded as country bumpkins and not to be emulated by polite society. Glasgow was more exposed to highlanders migrating to the city but even they quickly lost the kilt habit once there. Nowadays it has become popular and regarded as a symbol of national patriotism.