📝 Adjusted shortcuts and made teddit links script

This commit is contained in:
z3rOR0ne 2022-11-29 00:31:57 -08:00
parent 55296c53b3
commit 858dc780e0
4 changed files with 19 additions and 5 deletions

13
scripts/teddit Executable file
View file

@ -0,0 +1,13 @@
#!/bin/bash
lastarg=("${@: -1}")
search=""
for ARG in "${@}" ; do
if [[ $ARG == "${lastarg[1]}" ]] ; then
search+="${ARG}"
else
search+="${ARG}+"
fi
done
links "https://teddit.pussthecat.org/r/all/search?q=${search}"