split ros and bash macros