Skip to content

Instantly share code, notes, and snippets.

@bollovan
Created October 4, 2011 18:56

Revisions

  1. bollovan created this gist Oct 4, 2011.
    12 changes: 12 additions & 0 deletions zompload
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    #!/bin/zsh

    if zenity --question --text="Upload file?" --ok-label="Yes" --cancel-label="No" ; then
    if file=$(zenity --file-selection --title="Select a File")
    then
    zenity --info --text="Link: \n$(ompload -u "$file" | awk '{print $NF}')"
    else
    zenity --info --text="$(echo "No file selected.")" ;
    fi
    fi

    # vim: ft=sh:et: