Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joshuavandaele/fleeing-file
Play hide and seek in your filesystem!
https://github.com/joshuavandaele/fleeing-file
bash funny hide-and-seek joke script
Last synced: about 2 months ago
JSON representation
Play hide and seek in your filesystem!
- Host: GitHub
- URL: https://github.com/joshuavandaele/fleeing-file
- Owner: JoshuaVandaele
- License: mit
- Created: 2024-11-19T00:27:21.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-19T01:02:15.000Z (about 2 months ago)
- Last Synced: 2024-11-19T01:29:46.270Z (about 2 months ago)
- Topics: bash, funny, hide-and-seek, joke, script
- Language: Shell
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```sh
chmod +x catch-me.sh
```2. Add this to your `.bashrc`:
```sh
function cd_and_catch() {
cd "$@"
./catch-me.sh 2>/dev/null
}
alias cd='cd_and_catch'
```3. Run the script for the first time:
```sh
./catch-me.sh
```Enjoy the chase!
## Debug Mode
To enable debug mode, set the `DEBUG` variable to `1` at the top of the script:
```sh
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](LICENSE) file for details.