Skip to content

Instantly share code, notes, and snippets.

View andostronaut's full-sized avatar
🦕

Ando andostronaut

🦕
View GitHub Profile
git_current_branch () {
local ref
ref=$(command git symbolic-ref --quiet HEAD 2> /dev/null)
local ret=$?
if [[ $ret != 0 ]]
then
[[ $ret == 128 ]] && return
ref=$(command git rev-parse --short HEAD 2> /dev/null) || return
fi
echo ${ref#refs/heads/}
@andostronaut
andostronaut / nerd_fonts.md
Created October 16, 2024 18:35 — forked from davidteren/nerd_fonts.md
Install Nerd Fonts via Homebrew [updated & fixed]