Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 build

mkdir -p ~/.local/bin
cp zig-out/bin/christmas ~/.local/bin/
chmod +x ~/.local/bin/christmas
```