Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cartersusi/christmas-counter
Countdown the Days Until Christmas in your Terminal
https://github.com/cartersusi/christmas-counter
advent-of-code christmas-tree cli holidays zig
Last synced: 23 days ago
JSON representation
Countdown the Days Until Christmas in your Terminal
- Host: GitHub
- URL: https://github.com/cartersusi/christmas-counter
- Owner: cartersusi
- License: mit
- Created: 2024-09-02T03:42:59.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-04T15:08:02.000Z (2 months ago)
- Last Synced: 2024-10-02T07:03:48.748Z (about 1 month ago)
- Topics: advent-of-code, christmas-tree, cli, holidays, zig
- Language: Zig
- Homepage:
- Size: 2.09 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Christmas Countdown
Links to daily [Advent of Code](https://adventofcode.com/) problem during December.## Installation
### Set Up
```
mkdir -p ~/.local/bin
```### Download
```sh
# MacOS
curl -o ~/.local/bin/christmas https://raw.githubusercontent.com/cartersusi/christmas-counter/main/zig-out/bin/christmas-mac
# Linux
curl -o ~/.local/bin/christmas https://raw.githubusercontent.com/cartersusi/christmas-counter/main/zig-out/bin/christmas-linux```
### Running
```sh
chmod +x ~/.local/bin/christmas#bash
echo "export PATH=\$HOME/.local/bin/:\$PATH" >> ~/.bashrc
echo "christmas" >> ~/.bshrc
#zsh
echo "export PATH=\$HOME/.local/bin/:\$PATH" >> ~/.zshrc
echo "christmas" >> ~/.zshrc
#fish
echo "set -gx PATH ~/.local/bin \$PATH" >> ~/.config/fish/config.fish
echo "christmas" >> ~/.config/fish/config.fish
```## Building From Source
```sh
git clone https://github.com/cartersusi/christmas-counter.git
cd christmas-counter
zig buildmkdir -p ~/.local/bin
cp zig-out/bin/christmas ~/.local/bin/
chmod +x ~/.local/bin/christmas
```