Skip to content

Aliervo/zshrpg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

ZshRPG

ISC License

A wrapper that fully integrates rpg-cli with zsh!

rpg-cli turns your filesystem into a dungeon crawling RPG, zshrpg integrates it into your shell so you can play while you go about your normal zsh tasks.

Installation

# clone the repo
git clone https://github.com/aliervo/zshrpg ~/.config/zsh/plugins/zshrpg

# source zshrpg in your .zshrc
source ~/.config/zsh/plugins/zshrpg/rpg.plugin.zsh

Or install with your favorite plugin manager.

The script will use rpg-cli if it is in your $PATH, or it will download it for you! (linux only for now)

Usage

zshrpg wraps the rpg-cli program in the rpg function, saving you four keystrokes for anything you can do with rpg-cli.

Additionally, it overrides cd with a version that plays the game while you move around your filesystem. If your hero encounters an enemy en route, you will be placed in that folder to see the fight, or you'll be sent back home if your hero should fall.

If this behavior is undesirable (sometimes the work just has to get done), a teleport command has been provided to jump you to a folder without the chance of encounters along the way.

Finally, a dgn command that allows your hero generate and explore new dungeons in the current directory has been provided to allow quick and easy descent in search of treasure and monsters.

About

A wrapper that fully integrates rpg-cli with zsh!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages