aboutsummaryrefslogtreecommitdiff
path: root/scripts/.scripts/cpp_ps.sh
diff options
context:
space:
mode:
authorOmar Magdy <omar.professional8777@gmail.com>2022-05-28 16:30:20 +0200
committerOmar Magdy <omar.professional8777@gmail.com>2022-05-28 16:30:20 +0200
commit3c949f51a4ab72db64265b4f88ee625f6935744e (patch)
tree79da0b15918d56006e741e142494d666b57922da /scripts/.scripts/cpp_ps.sh
parent06372049fb8dc27b33ce5f68826971c22db17bf7 (diff)
downloaddotfiles-3c949f51a4ab72db64265b4f88ee625f6935744e.tar.xz
dotfiles-3c949f51a4ab72db64265b4f88ee625f6935744e.zip
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
Diffstat (limited to 'scripts/.scripts/cpp_ps.sh')
-rwxr-xr-xscripts/.scripts/cpp_ps.sh6
1 files changed, 6 insertions, 0 deletions
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<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\twhile(tt--){\n\n\t}\n}" > $1.cpp
+nvim $1.cpp
+
+