Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
.gitignore
Gemfile
README.md
Rakefile
smile_me_please.gemspec

README.md

Smile Me Please

Return random MAC Specific? UTF-8 smiles. Useful to add to your prompt, and be able to recognize different terminals easily.

Cool icons

Usage

You can call the command directly and will output a smily. If you pass the -n it will not write the new line character.

$ smile_me_please
:-)
$


$ smile_me_please -n
:-) $

NOTE: I don't know how to put utf-8 characters in README.md or if github is removing them.

Use cases

Make every terminal different and easy to recognice by putting random faces on each on the prompt:

In your .bash_profile, .profile, or whatever you prefer say

export PS1=`smile_me_please -n`$PS1

Or a more complete example that uses PROMPT_COMMAND

export SMILE=`smile_me_please -n`
add_smile(){
  export PS1="$SMILE $PS1"
}
PROMPT_COMMAND="add_smile"

Install

License

"THE BEER-WARE LICENSE" (Revision 42):
<guillermo@cientifico.net> wrote this file. As long as you retain this notice you
can do whatever you want with this stuff. If we meet some day, and you think
this stuff is worth it, you can buy me a beer in return Guillermo Álvarez
Something went wrong with that request. Please try again.