blob: f2ed03606fa343c1b392be119a7c7db88bc39e8f (
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
touch $1.cpp
echo -e "#include<bits/stdc++.h>\n\nusing namespace std;\n\nint main () {\n}" > $1.cpp
nvim $1.cpp
fi
|