A fork of RinRi's CPSRC. A tool for C++ Competitive programmers to do stuff
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
374 B

  1. # create.sh
  2. echo $'cp template.cpp $1.cpp\nnvim -s .gg $1.cpp' > create.sh
  3. # template
  4. read -n 1 -r -s -p $'Press any key to create template file...\n'
  5. nvim template.cpp
  6. # start line
  7. read -p $'Enter starting line of cursor:\n' line
  8. ((line=line-1))
  9. echo "$line"gg > .gg
  10. # run.sh
  11. echo $'g++ -g $1\n./a.out' > run.sh
  12. # make all executable
  13. chmod +x create.sh
  14. chmod +x run.sh