ceskadraha/README.md

1.7 KiB

čd (České dráhy)

A fun terminal animation of a Czech Railways motorak (railcar) - the Czech version of the classic sl command.

                    ___
                   |   |___
   _____________   |___|___|    _______________
  |  ___    ___ |=|_________|==|___    ___    |
  | |   |  |   ||   O     O  |  |  |  |   |  |
  |_|___|__|___||___\_____/___|__|__|__|___|__|
    \_O_/  \_O_/   \_______/     \_O_/  \_O_/

        České dráhy - Motorák 810

Inspired by the legendary sl command, but featuring the iconic ČD Class 810/810.0 "Orchestrion" motorak.

Installation

From AUR (Arch Linux)

yay -S cd-czechrailways
# or
paru -S cd-czechrailways

Manual Installation

git clone https://github.com/YOUR_USERNAME/ceskadráha.git
cd ceskadráha
sudo make install

Manual (without make)

sudo cp čd /usr/local/bin/
sudo chmod +x /usr/local/bin/čd

Usage

čd           # Run the animation (left to right)
čd -r        # Run in reverse (right to left)
čd -h        # Show help

Features

  • Animated Czech Railways Class 810 motorak
  • Reverse direction support
  • Animated exhaust/smoke
  • Terminal width aware
  • Thank you message in Czech: "Děkujeme, že jste cestovali s Českými drahami!"

Why?

Just like the original sl command was created to punish users who mistype ls, this is for Czech railway enthusiasts who want a bit of fun in their terminal. Or maybe you just really like Czech motoráks.

Requirements

  • Bash
  • tput command (usually part of ncurses)

License

MIT License - See LICENSE file for details

Credits

Inspired by the classic sl (Steam Locomotive) command by Toyoda Masashi.