Skip to content

debaillie/smiley-prompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Smiley Prompt

A handy prompt that displays useful information and a text emoji for return code.

smiley-prompt

Installation

Update your .bashrc or .zshrc to change the prompt using something like this:

PS1="\`let RET=\$?; $HOME/bin/smiley-prompt.sh; if [ \$RET = 0 ]; then echo -ne '\\[\\033[01;32m\\]:)'; else echo -ne '\\[\\033[01;31m\\]'; echo -ne \$RET; echo -ne ' :('; fi; echo -n '\\[\\033[00m\\] '\`"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages