diff options
| author | Omar Magdy <omar.professional8777@gmail.com> | 2022-05-30 00:12:11 +0200 |
|---|---|---|
| committer | Omar Magdy <omar.professional8777@gmail.com> | 2022-05-30 00:12:11 +0200 |
| commit | 8f5ab51dcce5554153903314c43b931ba7ebfbef (patch) | |
| tree | b80336de51d17646256f5b637046b1d97d11e749 /scripts/.scripts/cpp_ps.sh | |
| parent | 491c1bf7bfeb03fab156c1464d57292409059a94 (diff) | |
| download | dotfiles-8f5ab51dcce5554153903314c43b931ba7ebfbef.tar.xz dotfiles-8f5ab51dcce5554153903314c43b931ba7ebfbef.zip | |
Editted rc.lua and turned off the functionality that allows mouse scroll to switch beteween workspaces and also added a new script cleanup.sh and tweaked some scripts
Diffstat (limited to 'scripts/.scripts/cpp_ps.sh')
| -rwxr-xr-x | scripts/.scripts/cpp_ps.sh | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/scripts/.scripts/cpp_ps.sh b/scripts/.scripts/cpp_ps.sh index abdfbec..b4cd9a4 100755 --- a/scripts/.scripts/cpp_ps.sh +++ b/scripts/.scripts/cpp_ps.sh @@ -1,6 +1,12 @@ #!/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 +echo -e "Are you sure? y)es n)o" +read input +if [ "$input" = "y" ]; then + mkdir $1 + cd $1 + 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\tcin >> tt;\n\twhile(tt--){\n\n\t}\n}" > $1.cpp + nvim $1.cpp +fi |
