Replace peerflix script with a shell alias
This commit is contained in:
parent
0e5c236508
commit
ac6a2451db
|
@ -12,6 +12,7 @@ alias vim "nvim"
|
||||||
alias docker-compose "podman-compose"
|
alias docker-compose "podman-compose"
|
||||||
alias sc "systemctl"
|
alias sc "systemctl"
|
||||||
alias jc "journalctl -eu"
|
alias jc "journalctl -eu"
|
||||||
|
alias webtorrent "webtorrent -i -o /tmp/webtorrent --mpv --player-args='--sub-auto=all --sub-file-paths=Subs:subs'"
|
||||||
|
|
||||||
# Additional paths
|
# Additional paths
|
||||||
set PATH $PATH $HOME/.emacs.d/bin
|
set PATH $PATH $HOME/.emacs.d/bin
|
||||||
|
|
|
@ -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"
|
|
Loading…
Reference in New Issue