X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=c5e3c76fb00ddd5e126a41ad6d9a1b4c82084047;hb=44964b9307d67abd91aeecfe69e52b58d7c41b76;hp=c673f735d09a018b30cfd180ec78ae986ab1ad1d;hpb=06daabb03098a5938ece9c080dc153ca46dd75a6;p=grml-etc-core.git 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() {