osx: build PS1 by script