smile_me_please 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/Gemfile +4 -0
- data/README.md +62 -0
- data/Rakefile +1 -0
- data/bin/smile_me_please +9 -0
- data/lib/smile_me_please/version.rb +3 -0
- data/lib/smile_me_please.rb +5 -0
- data/smile_me_please.gemspec +24 -0
- metadata +54 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
# Smile Me Please
|
2
|
+
|
3
|
+
Return random MAC Specific? UTF-8 smiles.
|
4
|
+
Useful to add to your prompt, and be able to recognize different terminals easily.
|
5
|
+
|
6
|
+
![Cool icons](https://img.skitch.com/20120307-tn1cqgp6m86fckchw5e5jism3i.png)
|
7
|
+
|
8
|
+
|
9
|
+
## Usage
|
10
|
+
|
11
|
+
You can call the command directly and will output a smily. If you pass the __-n__ it will not write the new line character.
|
12
|
+
|
13
|
+
|
14
|
+
$ smile_me_please
|
15
|
+
:-)
|
16
|
+
$
|
17
|
+
|
18
|
+
|
19
|
+
$ smile_me_please -n
|
20
|
+
:-) $
|
21
|
+
|
22
|
+
**NOTE:** I don't know how to put utf-8 characters in README.md or if github is removing them.
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
## Use cases
|
27
|
+
|
28
|
+
Make every terminal different and easy to recognice by putting random faces on each on the prompt:
|
29
|
+
|
30
|
+
In your .bash_profile, .profile, or whatever you prefer say
|
31
|
+
|
32
|
+
export PS1=`smile_me_please -n`$PS1
|
33
|
+
|
34
|
+
Or a more complete example that uses **PROMPT_COMMAND**
|
35
|
+
|
36
|
+
export SMILE=`smile_me_please -n`¬
|
37
|
+
add_smile(){¬
|
38
|
+
export PS1="$SMILE $PS1"¬
|
39
|
+
}¬
|
40
|
+
PROMPT_COMMAND="add_smile"¬
|
41
|
+
|
42
|
+
|
43
|
+
## Install
|
44
|
+
|
45
|
+
* Rubygems
|
46
|
+
|
47
|
+
gem install smile_me_please
|
48
|
+
|
49
|
+
|
50
|
+
* curl
|
51
|
+
|
52
|
+
curl -O https://github.com/guillermo/smile_me_please/blob/master/bin/smile_me_please
|
53
|
+
chmod +x smile_me_please
|
54
|
+
|
55
|
+
|
56
|
+
## License
|
57
|
+
|
58
|
+
"THE BEER-WARE LICENSE" (Revision 42):
|
59
|
+
<guillermo@cientifico.net> wrote this file. As long as you retain this notice you
|
60
|
+
can do whatever you want with this stuff. If we meet some day, and you think
|
61
|
+
this stuff is worth it, you can buy me a beer in return Guillermo Álvarez
|
62
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/bin/smile_me_please
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "smile_me_please/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "smile_me_please"
|
7
|
+
s.version = SmileMePlease::VERSION
|
8
|
+
s.authors = ["Guillermo Álvarez"]
|
9
|
+
s.email = ["guillermo@cientifico.net"]
|
10
|
+
s.homepage = ""
|
11
|
+
s.summary = %q{Random smiles}
|
12
|
+
s.description = %q{Useful to put in the prompt of a shell.}
|
13
|
+
|
14
|
+
s.rubyforge_project = "smile_me_please"
|
15
|
+
|
16
|
+
s.files = `git ls-files`.split("\n")
|
17
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
|
+
s.require_paths = ["lib"]
|
20
|
+
|
21
|
+
# specify any dependencies here; for example:
|
22
|
+
# s.add_development_dependency "rspec"
|
23
|
+
# s.add_runtime_dependency "rest-client"
|
24
|
+
end
|
metadata
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: smile_me_please
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Guillermo Álvarez
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-03-07 00:00:00.000000000Z
|
13
|
+
dependencies: []
|
14
|
+
description: Useful to put in the prompt of a shell.
|
15
|
+
email:
|
16
|
+
- guillermo@cientifico.net
|
17
|
+
executables:
|
18
|
+
- smile_me_please
|
19
|
+
extensions: []
|
20
|
+
extra_rdoc_files: []
|
21
|
+
files:
|
22
|
+
- .gitignore
|
23
|
+
- Gemfile
|
24
|
+
- README.md
|
25
|
+
- Rakefile
|
26
|
+
- bin/smile_me_please
|
27
|
+
- lib/smile_me_please.rb
|
28
|
+
- lib/smile_me_please/version.rb
|
29
|
+
- smile_me_please.gemspec
|
30
|
+
homepage: ''
|
31
|
+
licenses: []
|
32
|
+
post_install_message:
|
33
|
+
rdoc_options: []
|
34
|
+
require_paths:
|
35
|
+
- lib
|
36
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
37
|
+
none: false
|
38
|
+
requirements:
|
39
|
+
- - ! '>='
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
42
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
43
|
+
none: false
|
44
|
+
requirements:
|
45
|
+
- - ! '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
requirements: []
|
49
|
+
rubyforge_project: smile_me_please
|
50
|
+
rubygems_version: 1.8.16
|
51
|
+
signing_key:
|
52
|
+
specification_version: 3
|
53
|
+
summary: Random smiles
|
54
|
+
test_files: []
|