This website works better with JavaScript.
Home
Explore
Help
Sign In
Madiwka
/
CPSRC
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
initial commit
master
RinRi-D
4 years ago
commit
e85cb97554
1 changed files
with
18 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+18
-0
setup.sh
+ 18
- 0
setup.sh
View File
@@ -0,0 +1,18 @@
# create.sh
echo $'cp template.cpp $1.cpp\nnvim -s .gg $1.cpp' > create.sh
# template
read -n 1 -r -s -p $'Press any key to create template file...\n'
nvim template.cpp
# start line
read -p $'Enter starting line of cursor:\n' line
((line=line-1))
echo "$line"gg > .gg
# run.sh
echo $'g++ -g $1\n./a.out' > run.sh
# make all executable
chmod +x create.sh
chmod +x run.sh
Write
Preview
Loading…
Cancel
Save