📝 Adjusted shortcuts and made teddit links script
This commit is contained in:
parent
55296c53b3
commit
858dc780e0
4 changed files with 19 additions and 5 deletions
13
scripts/teddit
Executable file
13
scripts/teddit
Executable 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}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue