Last active
August 29, 2015 13:56
-
-
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)$
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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