Extract environment, add aliases, various configs