Source directory creating script for competitive programmers who are using c++ and neovim
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
RinRi 8382d3ab2e create unchangable files and add -g flag il y a 3 ans
.config.d create unchangable files and add -g flag il y a 3 ans
Makefile create unchangable files and add -g flag il y a 3 ans
README.md Added new features and fixed bugs: il y a 3 ans
create.sh create unchangable files and add -g flag il y a 3 ans
run.sh create unchangable files and add -g flag il y a 3 ans
setup.sh create unchangable files and add -g flag il y a 3 ans

README.md

Installation

Clone the repository and make setup.sh executable and run it:

git clone https://git.rinri-d.xyz/rinri/cpsrc.git
cd cpsrc
chmod +x setup.sh
./setup.sh

First, you have to write template which will be used to create new files. Remember the number of the line with which you usually start coding. Enter it. That is it!

Using

In order to create a new .cpp file, you have to run create.sh with filename argument:

./create.sh 1234a

It will create 1234a.cpp. You can enter 1234a.cpp instead of 1234a and you will get the same result. Then you will be automatically redirected to neovim.

To compile and run file, you can use run.sh with filename as an argument(you can use both filename with extension and without):

./run.sh 1234a.cpp