Separate more shell config stuff into separate scripts under lib.