From: Joerg Woelke Date: Sun, 16 Aug 2009 14:59:27 +0000 (+0200) Subject: Remove broken ytdl() function from zshrc X-Git-Tag: v0.3.75~21 X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=44964b9307d67abd91aeecfe69e52b58d7c41b76 Remove broken ytdl() function from zshrc --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index c673f73..c5e3c76 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -3471,17 +3471,6 @@ viless() { vim --cmd 'let no_plugin_maps = 1' -c "so \$VIMRUNTIME/macros/less.vim" "${@:--}" } -# download video from youtube -ytdl() { - emulate -L zsh - if ! [[ -n "$2" ]] ; then - print "Usage: ydtl http://youtube.com/watch?v=.... outputfile.flv">&2 - return 1 - else - wget -O${2} "http://youtube.com/get_video?"${${${"$(wget -o/dev/null -O- "${1}" | grep -e watch_fullscreen)"}##*watch_fullscreen\?}%%\&fs=*} - fi -} - # Function Usage: uopen $URL/$file #f5# Download a file and display it locally uopen() {