Skip to content

Instantly share code, notes, and snippets.

@ilbonzo
Last active August 29, 2015 13:56
Show Gist options
  • Save ilbonzo/9248772 to your computer and use it in GitHub Desktop.
Save ilbonzo/9248772 to your computer and use it in GitHub Desktop.
Add App Name to prompt from phing build.properties - example: devel@vlinux:~/workspace (app::name)$
#!/bin/sh
parse_build_properties_file() {
cat build.properties 2>/dev/null | grep application.name | awk -F = '{print " (app::"$2")" }'
}
# PATH
PS1="${debian_chroot:+($debian_chroot)}\u@\h:\w\$(parse_build_properties_file)\$ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment