Skip to content

Commit

Permalink
Add 4k input to tor.
Browse files Browse the repository at this point in the history
  • Loading branch information
drn committed Nov 30, 2023
1 parent 9bf359d commit a9f7d8c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions bin/tor
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ if [[
"$1" != "misc" &&
"$1" != "hole" &&
"$1" != "books" &&
"$1" != "manga"
"$1" != "manga" &&
"$1" != "4k"
) ]]; then
echo "Usage: tor [movies/tv/safe/misc/hole/books/manga]"
echo "Usage: tor [movies/tv/safe/misc/hole/books/manga/4k]"
exit 1
fi

Expand All @@ -23,6 +24,9 @@ fi
if [ "$target" = "books" ]; then
target="audiobooks"
fi
if [ "$target" = "4k" ]; then
target="movies-4k"
fi

cd ~/Downloads || exit 1
shopt -s nullglob
Expand Down
2 changes: 1 addition & 1 deletion zsh/completion/_tor.zsh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function _tor {
_arguments '1: :(movies tv safe misc hole books manga)'
_arguments '1: :(movies tv safe misc hole books manga 4k)'
}

compdef _tor tor

0 comments on commit a9f7d8c

Please sign in to comment.