Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 821 Bytes

README.md

File metadata and controls

42 lines (28 loc) · 821 Bytes

Fleeing File

This is a fun and silly Bash script that randomly moves around the directory structure and tries to hide itself in a random subdirectory.

Usage

  1. Make the script executable:

    chmod +x catch-me.sh
  2. Add this to your .bashrc:

    function cd_and_catch() {
        cd "$@"
        ./catch-me.sh 2>/dev/null
    }
    alias cd='cd_and_catch'
  3. Run the script for the first time:

    ./catch-me.sh

Enjoy the chase!

Debug Mode

To enable debug mode, set the DEBUG variable to 1 at the top of the script:

DEBUG=1

In debug mode, the script will print additional information about its actions and will not actually move itself.

License

This project is licensed under the MIT License - see the LICENSE file for details.