aboutsummaryrefslogtreecommitdiff
path: root/scripts/.scripts
diff options
context:
space:
mode:
authoromagdy7 <omar.professional8777@gmail.com>2022-11-14 13:22:25 +0200
committeromagdy7 <omar.professional8777@gmail.com>2022-11-14 13:22:25 +0200
commita8d56b91efaebf9a8501f99bf45a3047c4dd72b7 (patch)
tree1992ef6fd80ad2ed44332d177e4e5594dbed6ad5 /scripts/.scripts
parentbacd7665cfcef1321b13fbbe14e3e20bb0b54bd0 (diff)
downloaddotfiles-a8d56b91efaebf9a8501f99bf45a3047c4dd72b7.tar.xz
dotfiles-a8d56b91efaebf9a8501f99bf45a3047c4dd72b7.zip
Changed colorscheme and added a few shortcuts in nvim
Diffstat (limited to 'scripts/.scripts')
-rwxr-xr-xscripts/.scripts/cpp_ps.sh3
-rwxr-xr-xscripts/.scripts/pscontests.sh5
2 files changed, 2 insertions, 6 deletions
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<bits/stdc++.h>\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<bits/stdc++.h>\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