diff options
| author | omagdy7 <omar.professional8777@gmail.com> | 2022-07-03 17:19:09 +0200 |
|---|---|---|
| committer | omagdy7 <omar.professional8777@gmail.com> | 2022-07-03 17:19:09 +0200 |
| commit | b49990801e1533736ad19eef0429b7bf5cbfb812 (patch) | |
| tree | b6d03154cec8125ed3269b75dc2040a98c14954d /scripts/.scripts | |
| parent | 4390ba544556a96765c136c933f4375990b34895 (diff) | |
| download | dotfiles-b49990801e1533736ad19eef0429b7bf5cbfb812.tar.xz dotfiles-b49990801e1533736ad19eef0429b7bf5cbfb812.zip | |
Updated some scripts
Diffstat (limited to 'scripts/.scripts')
| -rwxr-xr-x | scripts/.scripts/books.sh | 2 | ||||
| -rwxr-xr-x | scripts/.scripts/cpp_template.sh | 10 |
2 files changed, 8 insertions, 4 deletions
diff --git a/scripts/.scripts/books.sh b/scripts/.scripts/books.sh index 687fe90..c0ad461 100755 --- a/scripts/.scripts/books.sh +++ b/scripts/.scripts/books.sh @@ -9,7 +9,7 @@ # ################################################################## -path="/run/media/storage/Omar/Self learning/Books/English books" +path="/run/media/pengu/New Volume/Omar/Self learning/Books/English books/Books for computer science/" choice=$(ls "$path" | dmenu -l 10) new_choice=$choice diff --git a/scripts/.scripts/cpp_template.sh b/scripts/.scripts/cpp_template.sh index 6165f51..f2ed036 100755 --- a/scripts/.scripts/cpp_template.sh +++ b/scripts/.scripts/cpp_template.sh @@ -1,8 +1,12 @@ #!/bin/sh -touch $1.cpp -echo -e "#include<bits/stdc++.h>\n\nusing namespace std;\n\nint main () {\n}" > $1.cpp -nvim $1.cpp +echo -e "Are you sure? y)es n)o" +read input +if [ "$input" = 'y' ]; then + touch $1.cpp + echo -e "#include<bits/stdc++.h>\n\nusing namespace std;\n\nint main () {\n}" > $1.cpp + nvim $1.cpp +fi |
