diff options
| author | Omar Magdy <omar.professional8777@gmail.com> | 2022-05-28 16:30:20 +0200 |
|---|---|---|
| committer | Omar Magdy <omar.professional8777@gmail.com> | 2022-05-28 16:30:20 +0200 |
| commit | 3c949f51a4ab72db64265b4f88ee625f6935744e (patch) | |
| tree | 79da0b15918d56006e741e142494d666b57922da /scripts/.scripts/cpp_ps.sh | |
| parent | 06372049fb8dc27b33ce5f68826971c22db17bf7 (diff) | |
| download | dotfiles-3c949f51a4ab72db64265b4f88ee625f6935744e.tar.xz dotfiles-3c949f51a4ab72db64265b4f88ee625f6935744e.zip | |
Added a new script that creates a cpp file with the headers I use for competitive programming and added an alias that runs that script
Diffstat (limited to 'scripts/.scripts/cpp_ps.sh')
| -rwxr-xr-x | scripts/.scripts/cpp_ps.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/.scripts/cpp_ps.sh b/scripts/.scripts/cpp_ps.sh new file mode 100755 index 0000000..abdfbec --- /dev/null +++ b/scripts/.scripts/cpp_ps.sh @@ -0,0 +1,6 @@ +#!/bin/sh +touch $1.cpp +echo -e "#include<bits/stdc++.h>\n\nusing namespace std;\n\nint main () {\n\tios_base::sync_with_stdio(false);\n\tcin.tie(NULL);\n\tint tt;\n\twhile(tt--){\n\n\t}\n}" > $1.cpp +nvim $1.cpp + + |
