Skip to content

Instantly share code, notes, and snippets.

View suprth's full-sized avatar
🎯
Focusing

Supreeth D K suprth

🎯
Focusing
  • Bangalore
  • 16:01 (UTC +05:30)
View GitHub Profile
@XVilka
XVilka / TrueColour.md
Last active April 27, 2025 10:17
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!

@saippuakauppias
saippuakauppias / gist:3430432
Last active December 28, 2021 02:51
git shortcuts + zshrc
function git_current_branch () {
local ref
ref="$(git symbolic-ref --quiet HEAD 2>/dev/null)"
local ret=$?
if [[ $ret != 0 ]]
then
[[ $ret == 128 ]] && return 0
ref=$(git rev-parse --short HEAD 2>/dev/null) || return 0
fi
echo "${ref#refs/heads/}"