diff --git a/bin/tor b/bin/tor index f15f6f90..858abcea 100755 --- a/bin/tor +++ b/bin/tor @@ -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 @@ -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 diff --git a/zsh/completion/_tor.zsh b/zsh/completion/_tor.zsh index 4cfc54ca..fbff4686 100644 --- a/zsh/completion/_tor.zsh +++ b/zsh/completion/_tor.zsh @@ -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