https://github.com/eggplants/sh-xmas
🎄Plant X'mas tree(s) on your Terminal🎄
https://github.com/eggplants/sh-xmas
bash christmas christmas-tree command-line joke xmas xmas-tree
Last synced: about 1 year ago
JSON representation
🎄Plant X'mas tree(s) on your Terminal🎄
- Host: GitHub
- URL: https://github.com/eggplants/sh-xmas
- Owner: eggplants
- License: mit
- Created: 2021-12-18T01:53:55.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-14T15:25:31.000Z (over 3 years ago)
- Last Synced: 2025-03-30T01:34:44.750Z (about 1 year ago)
- Topics: bash, christmas, christmas-tree, command-line, joke, xmas, xmas-tree
- Language: Shell
- Homepage:
- Size: 60.5 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sh-xmas
[![Docker Image Size (latest by date)]](https://hub.docker.com/r/eggplanter/sh-xmas
) [![Docker Image Version (latest by date)]](https://hub.docker.com/r/eggplanter/sh-xmas
)
- Plant X'mas tree(s) on your Terminal
## Install
### From GitHub
```bash
curl -sSLo xmas https://git.io/JDi1J
sudo install xmas /usr/local/bin
xmas # launch
```
### From Docker(Hub)
```bash
docker run --rm -it eggplanter/sh-xmas # launch
```
## Usage
```shellsession
$ xmas -m -n 5 -l 3
★ ★ ★ ★ ★
/ \ / \ / \ /&\ / \
/ i。\ /&@i\ / ⸮\ /& ⸛\ / \
/ \ / ⸮⸛ \ /& \ / ⁂ \ / 。 ⸮\
/ @⸮i⁂\ / ⸛ 。 \ / ⁂&&⸮@\ /i& ⸮@ i\ /i⸮&⸮ i \
/ i \ /@i。 ⸮ \ / i & 。 @\ /⸛⸛ ⸮ ⸛@ \ /&⁂。ii ⁂& \
^^^^^| |^^^^^ ^^^^^| |^^^^^ ^^^^^| |^^^^^ ^^^^^| |^^^^^ ^^^^^| |^^^^^
| | | | | | | | | |
★ ★ ★ ★ ★
/ \ /@\ /&\ /⸮\ / \
/ @i\ / ⸮⸮\ /& 。\ / ⸛\ /& \
/ ⁂ \ / \ /⁂ i@ \ / ⸮ \ /⁂。&i⸛\
/ ⁂⁂⸮⁂ \ / ⁂i &\ / ⁂ ⁂ \ / ⁂。 i& \ /i @ ⁂\
/ 。 。 ⸛\ / ⁂⸮。i⸮ \ /⁂ i⸛⁂ \ / &⸛ \ / @ ⸛⸛ i \
^^^^^| |^^^^^ ^^^^^| |^^^^^ ^^^^^| |^^^^^ ^^^^^| |^^^^^ ^^^^^| |^^^^^
| | | | | | | | | |
★ ★ ★ ★ ★
/ \ /i\ / \ /。\ / \
/& ⸮\ / 。\ / ⸛\ /&⁂&\ / @⁂\
/ ⸮i\ /@。@ i\ / \ / @⸮ \ / @ \
/ \ /⸛i⸮i⸮ ⸛\ /ii⸛ \ /ii &i&\ / @ 。⸮ \
/ @⸛ \ / ⸮ @\ /⸛ ⸛ & ⸮ ⁂\ / \ / @ &i& \
^^^^^| |^^^^^ ^^^^^| |^^^^^ ^^^^^| |^^^^^ ^^^^^| |^^^^^ ^^^^^| |^^^^^
| | | | | | | | | |
```
## Help
```shellsession
$ xmas -h
xmas -- Plant X'mas tree(s)
Usage: xmas [options]
Options:
-s, --size game level (default=5)
-n, --number number of tree (default=1)
-l, --line number of line (default=1)
-a, --animation enable animation
-i, --interval animation interval (default=1)
-m, --monochrome disable color
-h, --help display this help and exit
-v, --version output version infromation and exit
Version:
0.0.5
```
## Screenshot

## License
MIT
---
## Other implementation
- Node.js
- [npm/cli/lib/xmas.js](https://github.com/npm/cli/blob/v6.14.15/lib/xmas.js)
- Original
- removed since npm v7.0.0
- [importre/xmas-tree](https://github.com/importre/xmas-tree)
- Deno
- [YuG1224/xmas](https://github.com/YuG1224/xmas)
- Perl
- [sugyan/xmas.pl](https://gist.github.com/sugyan/1011836)
- Ruby
- [kwappa/pebbles-xmas](https://github.com/kwappa/pebbles-xmas)
- Clojure
- [liquidz/clj-xmas](https://github.com/liquidz/clj-xmas)
[Docker Image Size (latest by date)]: https://img.shields.io/docker/image-size/eggplanter/sh-xmas
[Docker Image Version (latest by date)]: https://img.shields.io/docker/v/eggplanter/sh-xmas