7sDream / coin

toss coin in the fish. πŸŒ•πŸŒ–πŸŒ—πŸŒ˜πŸŒ‘πŸŒ’πŸŒ“πŸŒ”πŸŒ•

Home Page:https://www.v2ex.com/t/548388

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Coin

A script for toss a coin in the shell.

Need fish version >= 3.0.

Origin

Origin zsh script by @Coder89757:https://www.v2ex.com/t/548388

Fish port by @coldnight:https://gist.github.com/coldnight/5c9964769e9a39bf17bb767c88e8c366

I make this repo just for quick install with fisher or omf.

Install

fisher add 7sDream/coin

or

omf install https://github.com/7sDream/coin (Not tested, I don't use omf)

Configure

Default coin emoji is 🌝 and 🌚, set FISH_COIN_EMOJI_USE_FACE to 0 to use πŸŒ• and πŸŒ‘.

Default FPS is 24,you can change it with FISH_COIN_FPS.

Notice: show character need time too, so the higher the FPS, the bigger deviation, so lower than 30 is recommended

Default waiting time is 1s before show the result, change with FISH_COIN_WAIT_TIME(millisecond).

Example:

set -g FISH_COIN_EMOJI_USE_FACE 0
set -g FISH_COIN_FPS 30
set -g FISH_COIN_WAIT_TIME 500

License

I don't own this code, ask @Coder89757 for a license if you need one.

About

toss coin in the fish. πŸŒ•πŸŒ–πŸŒ—πŸŒ˜πŸŒ‘πŸŒ’πŸŒ“πŸŒ”πŸŒ•

https://www.v2ex.com/t/548388


Languages

Language:Shell 100.0%