ls-stories/README.md

29 lines
672 B
Markdown

# 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](https://sapphic.pw/8VR27)
## Installation
First, create a virtual environment and install the dependencies:
```sh
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:
```sh
function ls() {
# ~25% chance of seeing new stories
[ "$RANDOM" -lt 8191 ] && (cd path/to/repo/ ; ./stories.py )
command ls $@
}
```