aboutsummaryrefslogtreecommitdiff
path: root/scripts/.scripts/cpp_ps.sh
blob: b4cd9a47d2220b22d58328207ec727952ac0febc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
echo -e "Are you sure? y)es n)o"
read input
if [ "$input" = "y" ]; then
  mkdir $1
  cd $1
  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\tcin >> tt;\n\twhile(tt--){\n\n\t}\n}" > $1.cpp
  nvim $1.cpp
fi