Skip to content

Instantly share code, notes, and snippets.

Avatar
🚴‍♀️
Wannabe a WordPress Wizard!

Lawrence Joe laranz

🚴‍♀️
Wannabe a WordPress Wizard!
View GitHub Profile
View lamda-mod.zsh-theme
#!/usr/bin/env zsh
local LAMBDA="%(?,%{$fg_bold[green]%}🚀,%{$fg_bold[red]%}🚀)"
if [[ "$USER" == "root" ]]; then USERCOLOR="red"; else USERCOLOR="yellow"; fi
# Git sometimes goes into a detached head state. git_prompt_info doesn't
# return anything in this case. So wrap it in another function and check
# for an empty string.
function check_git_prompt_info() {
if git rev-parse --git-dir > /dev/null 2>&1; then