Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cmccandless/clean-code-random
print a random phrase when you open a new terminal session
https://github.com/cmccandless/clean-code-random
Last synced: 1 day ago
JSON representation
print a random phrase when you open a new terminal session
- Host: GitHub
- URL: https://github.com/cmccandless/clean-code-random
- Owner: cmccandless
- Created: 2024-03-14T15:11:54.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-08-07T16:15:09.000Z (3 months ago)
- Last Synced: 2024-08-07T19:30:06.203Z (3 months ago)
- Language: Python
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Print random concept from Clean Code by Robert C. Martin
Recommended use: print a random phrase when you open a new terminal session.
To do this, run `bash install_bash.sh` to append the command to your bashrc.
To remove, open `~/.bashrc` and remove the line referencing `random_phrase.py`.
![screenshot depicting a phrase printed before prompt in new bash terminal session](screenshot.png)
## Requirements
- Python3 (anything newer than 3.7 should be just fine)
# Credits
Concept list from @wojteklu 's wonderful [Summary of 'Clean code' by Robert C. Martin](https://gist.github.com/wojteklu/73c6914cc446146b8b533c0988cf8d29).