From a8d56b91efaebf9a8501f99bf45a3047c4dd72b7 Mon Sep 17 00:00:00 2001 From: omagdy7 Date: Mon, 14 Nov 2022 13:22:25 +0200 Subject: Changed colorscheme and added a few shortcuts in nvim --- scripts/.scripts/cpp_ps.sh | 3 +-- scripts/.scripts/pscontests.sh | 5 +---- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'scripts/.scripts') diff --git a/scripts/.scripts/cpp_ps.sh b/scripts/.scripts/cpp_ps.sh index 1b09fe5..b2c2600 100755 --- a/scripts/.scripts/cpp_ps.sh +++ b/scripts/.scripts/cpp_ps.sh @@ -4,8 +4,7 @@ read input if [ "$input" = "y" ]; then mkdir $1 cd $1 - touch main.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\tcin >> tt;\n\twhile(tt--){\n\n\t}\n}" > main.cpp + cp ~/test/cptemplate/main.cpp . nvim main.cpp fi diff --git a/scripts/.scripts/pscontests.sh b/scripts/.scripts/pscontests.sh index e65a597..ff4f1e3 100755 --- a/scripts/.scripts/pscontests.sh +++ b/scripts/.scripts/pscontests.sh @@ -7,8 +7,5 @@ mkdir ${REPLY} cd ${REPLY} for p in $PROBLEMS do - mkdir $p - cd $p - touch main.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\tcin >> tt;\n\twhile(tt--){\n\n\t}\n}" > main.cpp + echo "y" | ~/.scripts/cpp_ps.sh $p done -- cgit v1.2.3