From ac6a2451db5fe428d6e98d9aafb5ef85efaf56d1 Mon Sep 17 00:00:00 2001 From: coolneng Date: Thu, 9 Jun 2022 18:17:42 +0200 Subject: [PATCH] Replace peerflix script with a shell alias --- fish/.config/fish/config.fish | 1 + scripts/.local/share/scripts/peerflix | 8 -------- 2 files changed, 1 insertion(+), 8 deletions(-) delete mode 100755 scripts/.local/share/scripts/peerflix diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish index e196c59..3cb0ca4 100644 --- a/fish/.config/fish/config.fish +++ b/fish/.config/fish/config.fish @@ -12,6 +12,7 @@ alias vim "nvim" alias docker-compose "podman-compose" alias sc "systemctl" alias jc "journalctl -eu" +alias webtorrent "webtorrent -i -o /tmp/webtorrent --mpv --player-args='--sub-auto=all --sub-file-paths=Subs:subs'" # Additional paths set PATH $PATH $HOME/.emacs.d/bin diff --git a/scripts/.local/share/scripts/peerflix b/scripts/.local/share/scripts/peerflix deleted file mode 100755 index 5dc177c..0000000 --- a/scripts/.local/share/scripts/peerflix +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash - -directory=/tmp/webtorrent -player=mpv - -webtorrent download "$1" -s -o "$directory" --"$player" -read -rp "File number: " nr -webtorrent download "$@" -s "$nr" -o "$directory" --"$player"