aboutsummaryrefslogtreecommitdiff
path: root/scripts/.scripts/cpp_ps.sh
blob: e8d52b762266a0becc6eb93c93554da01f0b787b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
echo -e "sure? y)es n)o d)on't open the file"
read input
if [ "$input" = "y" ]; then
  mkdir $1
  cd $1
  cp ~/programming/cptemplate/main.cpp .
  nvim main.cpp
fi
if [ "$input" = "d" ]; then
  mkdir $1
  cp ~/programming/cptemplate/main.cpp $1 
fi