ls-stories/README.md

672 B

Introducing... ls stories!

Have you wanted to see what your friends are up to in their terminals?
Well, wonder no more! I got distracted from important things again and now this exists!

Screenshot of command output

Installation

First, create a virtual environment and install the dependencies:

cd path/to/repo

python -m venv venv
source venv/bin/activate

pip install -r requirements.txt

Then, just put this in your .bashrc/.zshrc/etc file and replace the path:

function ls() {
    # ~25% chance of seeing new stories
    [ "$RANDOM" -lt 8191 ] && (cd path/to/repo/ ; ./stories.py )
    command ls $@
}