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"