summaryrefslogtreecommitdiffstats
path: root/.local/bin/jobconsider
diff options
context:
space:
mode:
authormsglm <msglm@techchud.xyz>2023-01-27 19:57:05 -0600
committermsglm <msglm@techchud.xyz>2023-01-27 19:57:05 -0600
commitea9cef406d75a4b8e776a8b15cf9c3e14bcb7bf4 (patch)
tree6c2ed479e60cf9c1675ed70c2cad2d15cd9ab8e9 /.local/bin/jobconsider
parent58dc0de7e04442103bea04ab4c70fabec2270ea4 (diff)
downloadmsglm-dotfiles-ea9cef406d75a4b8e776a8b15cf9c3e14bcb7bf4.tar.gz
msglm-dotfiles-ea9cef406d75a4b8e776a8b15cf9c3e14bcb7bf4.tar.bz2
msglm-dotfiles-ea9cef406d75a4b8e776a8b15cf9c3e14bcb7bf4.zip
adding job considering script
Diffstat (limited to '.local/bin/jobconsider')
-rwxr-xr-x.local/bin/jobconsider40
1 files changed, 40 insertions, 0 deletions
diff --git a/.local/bin/jobconsider b/.local/bin/jobconsider
new file mode 100755
index 0000000..68bef0c
--- /dev/null
+++ b/.local/bin/jobconsider
@@ -0,0 +1,40 @@
+#!/bin/bash
+
+#Description: Looks into your JOBDIR folders for jobs you marked as considering, presents them to you for research, then asks your opinion on them.
+
+#Axioms: JOBDIR
+
+#Dependencies: joblook
+
+
+numofjobs=1
+consideringjob="$(find /home/"$USER"/Documents/Jobs/Considering -maxdepth 1 -type f | shuf | head -1)"
+if [[ $# = 0 ]]
+then
+ less "$consideringjob"
+ read -r -p "Are you interested? (y/n): " Choice
+ if [ "$Choice" = 'y' ]
+ then
+ mkdir /home/joybuke/Documents/"$USER"/Applying/"$(basename "$consideringjob")"
+ mv -v "$consideringjob" /home/"$USER"/Documents/Jobs/Applying/"$(basename "$consideringjob")"
+ elif [ "$Choice" = 'n' ]
+ then
+ rm "$consideringjob"
+ fi
+fi
+
+while [[ "$numofjobs" -le "$1" ]]
+do
+ less "$consideringjob"
+ read -r -p "Are you interested? (y/n): " Choice
+ if [ "$Choice" = 'y' ]
+ then
+ mkdir /home/joybuke/Documents/"$USER"/Applying/"$(basename "$consideringjob")"
+ mv -v "$consideringjob" /home/"$USER"/Documents/Jobs/Applying/"$(basename "$consideringjob")"
+ elif [ "$Choice" = 'n' ]
+ then
+ rm "$consideringjob"
+ fi
+ consideringjob="$(find /home/"$USER"/Documents/Jobs/Considering -maxdepth 1 -type f | shuf | head -1)"
+ numofjobs=$numofjobs+1
+done