Skip to content

Instantly share code, notes, and snippets.

@specious
specious / bender-bash-prompt.sh
Last active May 28, 2025 02:26
A fancy two-line bash prompt with git integration
#
# Fancy two-line prompt with git integration
#
# ┌───=[ specious :: sharp -( 0 )-[ ~ ]-( master )
# └──(
#
git_current_head () {
git symbolic-ref --short HEAD 2>/dev/null || git rev-parse --short HEAD
}