Skip to content

Instantly share code, notes, and snippets.

@xsnpdngv
Created February 12, 2026 13:02
Show Gist options
  • Select an option

  • Save xsnpdngv/8a7ebed02eb906c5b93db43028ce1471 to your computer and use it in GitHub Desktop.

Select an option

Save xsnpdngv/8a7ebed02eb906c5b93db43028ce1471 to your computer and use it in GitHub Desktop.
CORE indication in prompt
check_coredump() {
if coredumpctl list --since "$( date -d "10 mins ago" "+%Y-%m-%d %H:%M")" 2>/dev/null | grep -q "$USER"; then
echo -e "\e[31m[CORE]\e[0m "
fi
}
PS1="\$(check_coredump)$PS1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment