Instantly share code, notes, and snippets.

Embed
What would you like to do?
ZSH prompt with finger guns πŸ‘‰ 😎 πŸ‘‰ (requires emoji support)
PROMPT=$'%{$fg_bold[green]%}%n@%m %{$fg[blue]%}%D{[%X]} %{$reset_color%}%{$fg[white]%}[%~]%{$reset_color%} $(git_prompt_info)\
%{$fg[blue]%}%(?.πŸ‘†πŸ˜ŽπŸ‘†.πŸ‘ŽπŸ˜ πŸ‘Ž)%{$fg_bold[blue]%} %#%{$reset_color%} '
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}["
ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}*%{$fg[green]%}"
ZSH_THEME_GIT_PROMPT_CLEAN=""
function πŸ‘†πŸ”«πŸ’₯πŸ’₯ () {
ORIG_PROMPT=$PROMPT
zle accept-line
PROMPT=`echo $PROMPT | sed -e 's/πŸ‘†πŸ˜ŽπŸ‘†/πŸ‘‰πŸ˜ŽπŸ‘‰/' -e 's/πŸ‘ŽπŸ˜ πŸ‘Ž/πŸ‘‰πŸ˜ŽπŸ‘‰/'`
zle reset-prompt
PROMPT=$ORIG_PROMPT
}
zle -N πŸ‘†πŸ”«πŸ’₯πŸ’₯
bindkey '^M' πŸ‘†πŸ”«πŸ’₯πŸ’₯
@tubaterry

This comment has been minimized.

Copy link
Owner

tubaterry commented Apr 4, 2017

@tubaterry

This comment has been minimized.

Copy link
Owner

tubaterry commented Sep 25, 2017

Updated for High Sierra's terminal dealing with emoji better

@tubaterry

This comment has been minimized.

Copy link
Owner

tubaterry commented Sep 21, 2018

Updated to get more in the spirit of things

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment