summaryrefslogtreecommitdiffstats
path: root/.local/bin/joblook
diff options
context:
space:
mode:
authormsglm <msglm@techchud.xyz>2023-01-14 10:33:04 -0600
committermsglm <msglm@techchud.xyz>2023-01-14 10:33:04 -0600
commit0d05ef1e12314985988e567ac22a179d0f646899 (patch)
treede702ad5f7550a27a6fb982e617363ccaca4fecf /.local/bin/joblook
downloadmsglm-dotfiles-0d05ef1e12314985988e567ac22a179d0f646899.tar.gz
msglm-dotfiles-0d05ef1e12314985988e567ac22a179d0f646899.tar.bz2
msglm-dotfiles-0d05ef1e12314985988e567ac22a179d0f646899.zip
Inital Commit
Diffstat (limited to '.local/bin/joblook')
-rwxr-xr-x.local/bin/joblook38
1 files changed, 38 insertions, 0 deletions
diff --git a/.local/bin/joblook b/.local/bin/joblook
new file mode 100755
index 0000000..a17dd2d
--- /dev/null
+++ b/.local/bin/joblook
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+#Description: Looks into your JOBDIR's folders for potential jobs, presents them to you, then asks your opinion on them.
+
+#Axioms: JOBDIR
+
+#Dependencies: https://git.techchud.xyz/indeedwatcher
+
+
+numofjobs=1
+potentialjob="$(find /home/"$USER"/Documents/Jobs/Potential -maxdepth 1 -type f | shuf | head -1)"
+if [[ $# = 0 ]]
+then
+ less "$potentialjob"
+ read -r -p "Are you interested? (y/n): " Choice
+ if [ "$Choice" = 'y' ]
+ then
+ mv -v "$potentialjob" /home/$USER/Documents/Jobs/Considering/
+ elif [ "$Choice" = 'n' ]
+ then
+ rm "$potentialjob"
+ fi
+fi
+
+while [[ "$numofjobs" -le "$1" ]]
+do
+ less "$potentialjob"
+ read -r -p "Are you interested? (y/n): " Choice
+ if [ "$Choice" = 'y' ]
+ then
+ mv -v "$potentialjob" /home/$USER/Documents/Jobs/Considering/
+ elif [ "$Choice" = 'n' ]
+ then
+ rm "$potentialjob"
+ fi
+ potentialjob="$(find /home/"$USER"/Documents/Jobs/Potential -maxdepth 1 -type f | shuf | head -1)"
+ numofjobs=$numofjobs+1
+done