From 0d63fe87eaab76d5a897c447194e2c9ac186c126 Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Thu, 19 Mar 2020 01:23:02 +0100 Subject: [PATCH] Initial commit --- LICENSE | 13 ++++++ README.md | 95 ++++++++++++++++++++++++++++++++++++++++ mpv-yt-search.plugin.zsh | 7 +++ 3 files changed, 115 insertions(+) create mode 100644 LICENSE create mode 100644 README.md create mode 100644 mpv-yt-search.plugin.zsh diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..ff9e935 --- /dev/null +++ b/LICENSE @@ -0,0 +1,13 @@ + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + +Copyright (C) 2004 Sam Hocevar + +Everyone is permitted to copy and distribute verbatim or modified +copies of this license document, and changing it is allowed as long +as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. diff --git a/README.md b/README.md new file mode 100644 index 0000000..ef2668c --- /dev/null +++ b/README.md @@ -0,0 +1,95 @@ +# MPV YouTube Search Plugin for ZSH + +Allows searching for YouTube videos and playing the first result with mpv. +Requires youtube-dl to be installed for search and play YouTube videos with mpv. + +## Repository clones + +The original repository will be stored on [GitHub](https://github.com/Zocker1999NET/zsh-mpv-yt-search). +You can use the original reopsitory if you want to use GitHub. +Also issues and pull requests will be collected there for convenience. + +This repository will be cloned to my own server. +You can use the [clone](https://git.banananet.work/zsh-plugins/mpv-yt-search) instead of this repository +if you want to avoid use GitHub. + +## Installation + +### zsh (without plugin support) + +1. Clone project +2. Add following line to your `.zshrc`: +```sh +source "path/to/repo/mpv-yt-search.plugin.zsh" +``` + +### oh-my-zsh + +1. Clone project into `~/.oh-my-zsh/custom/plugins/mpv-yt-search` +2. Add `mpv-yt-search` to your plugin list +```sh +plugins=(… mpv-yt-search …) +``` + +### Antigen + +1. Add following line to your `.zshrc`: +```sh +antigen bundle Zocker1999NET/zsh-mpv-yt-search # GitHub if default repository unchanged +antigen bundle https://git.banananet.work/zsh-plugins/mpv-yt-search # Own Server +``` + +or + +1. Add the repository to your plugin list +```sh +antigen bundles <