Created
February 16, 2015 16:29
-
-
Save cbliard/f6fa9662769e3ecc9869 to your computer and use it in GitHub Desktop.
Prompt with more information
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
# prompt with more informations when set -x | |
export PS4='+$(/bin/date +"%Y/%m/%d-%T%z"):[$(which $(sed -n -r "${LINENO}s/^[[:space:]]*([^[:space:]]+).*/\1/p" "${BASH_SOURCE}"))]:${BASH_SOURCE}:${LINENO}:${FUNCNAME}: ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment