aboutsummaryrefslogtreecommitdiff
path: root/scripts/.scripts/cpp_ps.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/.scripts/cpp_ps.sh')
-rwxr-xr-xscripts/.scripts/cpp_ps.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/.scripts/cpp_ps.sh b/scripts/.scripts/cpp_ps.sh
index b2c2600..95b110f 100755
--- a/scripts/.scripts/cpp_ps.sh
+++ b/scripts/.scripts/cpp_ps.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-echo -e "Are you sure? y)es n)o"
+echo -e "sure? y)es n)o d)on't open the file"
read input
if [ "$input" = "y" ]; then
mkdir $1
@@ -7,6 +7,9 @@ if [ "$input" = "y" ]; then
cp ~/test/cptemplate/main.cpp .
nvim main.cpp
fi
-
+if [ "$input" = "d" ]; then
+ mkdir $1
+ cp ~/test/cptemplate/main.cpp $1
+fi