From 3c949f51a4ab72db64265b4f88ee625f6935744e Mon Sep 17 00:00:00 2001 From: Omar Magdy Date: Sat, 28 May 2022 16:30:20 +0200 Subject: Added a new script that creates a cpp file with the headers I use for competitive programming and added an alias that runs that script --- scripts/.scripts/cpp_ps.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 scripts/.scripts/cpp_ps.sh (limited to 'scripts/.scripts/cpp_ps.sh') diff --git a/scripts/.scripts/cpp_ps.sh b/scripts/.scripts/cpp_ps.sh new file mode 100755 index 0000000..abdfbec --- /dev/null +++ b/scripts/.scripts/cpp_ps.sh @@ -0,0 +1,6 @@ +#!/bin/sh +touch $1.cpp +echo -e "#include\n\nusing namespace std;\n\nint main () {\n\tios_base::sync_with_stdio(false);\n\tcin.tie(NULL);\n\tint tt;\n\twhile(tt--){\n\n\t}\n}" > $1.cpp +nvim $1.cpp + + -- cgit v1.2.3