Skip to content

Instantly share code, notes, and snippets.

@cbliard
Created February 16, 2015 16:29
Show Gist options
  • Save cbliard/f6fa9662769e3ecc9869 to your computer and use it in GitHub Desktop.
Save cbliard/f6fa9662769e3ecc9869 to your computer and use it in GitHub Desktop.
Prompt with more information
# 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