diff --git a/_ani-cli-bash b/_ani-cli-bash deleted file mode 100644 index 7b1827e4b..000000000 --- a/_ani-cli-bash +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash - -_ani_cli_autocomplete() { - local cur prev opts - - # Get the current and previous words in the command line - COMPREPLY=() - cur="${COMP_WORDS[COMP_CWORD]}" - prev="${COMP_WORDS[COMP_CWORD-1]}" - - # Define the main options - opts=" - -c --continue - -d --download - -D --delete - -s --syncplay - -S --select-nth - -q --quality - -v --vlc - -V --version - -h --help - -e --episode - --dub - --rofi - --skip - --no-detach - -N --nextep-countdown - -U --update - " - - # Check for conditional options - if [[ "${COMP_WORDS[@]}" =~ "--no-detach" ]]; then - opts+=" --exit-after-play" - fi - - if [[ "${COMP_WORDS[@]}" =~ "-e" || "${COMP_WORDS[@]}" =~ "--episode" ]]; then - opts+=" -r --range" - fi - - # Use `compgen` to generate the options based on the current word - COMPREPLY=($(compgen -W "${opts}" -- "$cur")) -} - -# Register the completion function for `ani-cli` -complete -F _ani_cli_autocomplete ani-cli diff --git a/_ani-cli-zsh b/_ani-cli-zsh deleted file mode 100644 index 1ce3736f7..000000000 --- a/_ani-cli-zsh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/zsh - -# Enable autocompletion for zsh -autoload -U compinit && compinit - -_ani-cli() { - _arguments \ - '(-c --continue)'{-c,--continue}'[Continue watching from history]' \ - '(-d --download)'{-d,--download}'[Download the video instead of playing it]' \ - '(-D --delete)'{-D,--delete}'[Delete the downloaded video]' \ - '(-s --syncplay)'{-s,--syncplay}'[Use Syncplay to watch with friends]' \ - '(-S --select-nth)'{-S,--select-nth}'[Select nth entry]' \ - '(-q --quality)'{-q,--quality}'[Specify the video quality]' \ - '(-v --vlc)'{-v,--vlc}'[Use VLC to play the video]' \ - '(-V --version)'{-V,--version}'[Show the version of the script]' \ - '(-h --help)'{-h,--help}'[Show help this help message]' \ - '(-e --episode)'{-e,--episode}'[Specify the episode to watch]' \ - '(-e --episode)'{-r,--range}'[Specify the range of episodes to watch]' \ - '--dub[Dub the video]' \ - '--rofi[Use rofi instead of fzf]' \ - '--skip[Use ani-skip to skip the intro of the episode (mpv only)]' \ - "--no-detach[ Don't detach the player (useful for in-terminal playback, mpv only)]" \ - '(--no-detach)--exit-after-play[Exit after the video is played]' \ - '--skip-title[Use given title as ani-skip query]' \ - '(-N --nextep-countdown)'{-N,--nextep-countdown}'[Countdown to next episode]' \ - '(-U --update)'{-U,--update}'[Update the script]' -} - -# Register the completion function for `ani-cli` -compdef _ani-cli ani-cli diff --git a/shell.nix b/shell.nix deleted file mode 100644 index 5d1624704..000000000 --- a/shell.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ - pkgs ? import {}, - withMpv ? true, - withVlc ? false, - withIina ? false, - chromecastSupport ? false, - syncSupport ? false -}: - -# To start the dev shell use the comment nix-shell -# use --arg withVlc true to use VLC -# use --arg withIina true to use Iina -# use --arg chromecastSupport true to use chromecastSupport -# use --arg syncSupport true to use syncSupport - -assert withMpv || withVlc || withIina; - -with pkgs; -mkShell { - name = "ani-cli dev shell"; - buildInputs = [ shfmt shellcheck (ani-cli.override ({ withMpv = withMpv; withVlc = withVlc; withIina = withIina; chromecastSupport = chromecastSupport; syncSupport = syncSupport; })).runtimeDependencies ]; -}