A fork of RinRi's CPSRC. A tool for C++ Competitive programmers to do stuff
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
Madiwka3 d3c815a883 Updated to comply with new features from RinRi hace 4 años
README.md Updated to comply with new features from RinRi hace 4 años
setup.sh Updated to comply with new features from RinRi hace 4 años

README.md

Overview

This is a fork of RinRi’s cpsrc, but made to be compatible with Debian based Operating Systems, and use ANY editor instead of just neovim.

It also has a couple tweaks, such as custom directories, better dpendency compatibility, and custom program names.

Installation

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

git clone https://github.com/Madiwka4/cpsrc.git
cd cpsrc
chmod +x setup.sh
./setup.sh

First, you have to choose your default text editor. You can set any editor you want, as long as it supports opening files using the “editor file” type shell command. Then, you can choose the package name of the editor. This makes sure that the editor is up to date. After that, you are given the choise to enter your custom directory, for example,

Enter custom directory for code? [y/N] y
Enter directory for files:
/home/user/Code
Set directory as /home/user/Code

and your files will be unpacked in /home/user/Code!

Next, you can create your own template. This doesnt support pre-selected lines, since it doesn’t work on VIM!

Usage

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

./create.sh 1234a

You will be automatically redirected to the editor of your choise.

To compile&run file, you can just use exe.sh with filename, (also without extension)

./exe.sh 1234a