From 3877f9aacc3a22f6af6919e80f7c68dc992848a1 Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Tue, 13 Sep 2022 11:14:58 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A7=D0=B8=D1=81=D1=82=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 75-aliases.zsh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/75-aliases.zsh b/75-aliases.zsh index d509104..96d070e 100644 --- a/75-aliases.zsh +++ b/75-aliases.zsh @@ -27,16 +27,14 @@ aptf() { } # Youtube -YDL="$HOME/bin/youtube-dl" -[ ! -x "$YDL" ] && YDL="$(which youtube-dl)" -if [ -x "$YDL" ]; then +if [ command -v youtube-dl ]; then alias ydlbest="youtube-dl --merge-output-format mkv -f 'bestvideo+bestaudio'" alias ydlaudio="youtube-dl -f bestaudio" alias ydl="youtube-dl --merge-output-format mkv" fi # feh -alias feh="feh --cache-size 256 --version-sort --sort filename --image-bg black" +command -v feg && alias feh="feh --cache-size 256 --version-sort --sort filename --image-bg black" # git alias gpa="git remote | xargs -L1 git push --all"