aboutsummaryrefslogtreecommitdiff
path: root/scripts/.scripts/cpp_template.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/.scripts/cpp_template.sh')
-rwxr-xr-xscripts/.scripts/cpp_template.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/.scripts/cpp_template.sh b/scripts/.scripts/cpp_template.sh
new file mode 100755
index 0000000..6165f51
--- /dev/null
+++ b/scripts/.scripts/cpp_template.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+touch $1.cpp
+echo -e "#include<bits/stdc++.h>\n\nusing namespace std;\n\nint main () {\n}" > $1.cpp
+nvim $1.cpp
+
+
+