bash: adjust the order of some configurations