my opinionated C coding style
derived from suckless coding style
standard
- always use
-std=c99 -pedantic
derived from suckless coding style
-std=c99 -pedantic| #include <iostream> | |
| #include <fstream> | |
| #include <sstream> | |
| class TSCDecrypt { | |
| public: | |
| std::string decrypt_file(const std::string& file_name) const { | |
| // Read the file into a string. | |
| std::ifstream file(file_name); | |
| std::stringstream stream; |
| # installs mcpelauncher-linux and its dependencies | |
| PWD=`pwd` | |
| if [[ ! $PWD == *"mcpelauncher-linux"* ]]; then | |
| echo ">> NOTICE: Not running in the correct repository." | |
| if [[ -d mcpelauncher-linux ]]; then | |
| cd mcpelauncher-linux | |
| echo ">> CDed into the repository." | |
| else |
This is my new $PS1. I designed it myself, and (I will admit it), was a pain to setup, but I did it!
I was trying out powerline-shell when I saw that it was very slow on my system. Although it was easy to setup, it runs a Python script every time to generate a $PS1. It would take 0.5-1.0 seconds to run the script on my system to generate the $PS1, and that was bothering me. (It's great, though!)
I hereby claim:
To claim this, I am signing this object:
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title></title> | |
| </head> | |
| <body onload='init()'> | |
| </body> | |
| <script> | |
| function init() { | |
| } |