Here I have work on bash files and create a simple file that helps to run cpp files very easily for the purpose of competative programming
I am pretty sure you will get this repo so pretty
go to pretty_cpp_wiki
First of all for using this repo is Installation
-
run this on terminal
cd ~ git clone https://github.com/Maanas-Verma/pretty_cpp_run.git -
On same terminal and enter this command
sudo nano /etc/bash.bashrcand then put your password there
-
Go to last line of this file and add the following line.
alias m="bash ~/pretty_cpp_run/test.sh"First of all save this file by pressing ' Ctrl+O ' -> press Enter -> press ' Ctrl+X '
After installtion you need to have a small setup too. This will be converted in a sigle line code in latter version of this repo.
Simply go to this repos directory and copy the template folder and paste it to the folder where you want to work. It will ensure that we are in correct directory.
Basic commands that you can use in this repo are
-
m create <folder name>By the help of this command you can create a folder for your new question of compitative programming
-
m run <folder name>By the help of this command you can run a folder or A.cpp file related to your question name.
-
m runIt will run the file that was run by us last time. It will reduce time by just seeing what file you have run last time.
-
m helpthis line or any other words other than upper commands will result to giving help section