X-Git-Url: https://src.twobees.de/?a=blobdiff_plain;f=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Fdroplr%2Fdroplr.plugin.zsh;fp=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Fdroplr%2Fdroplr.plugin.zsh;h=0000000000000000000000000000000000000000;hb=1a8e170bbe5c6641a26ab1ce2e6ce6c5c1faa4cd;hp=af0a21299062729ef24dbbe15492d362d78af63f;hpb=475ba35502579302593f4735c853c49ef1845dcb;p=dotfiles.git diff --git a/stow/oh-my-zsh/.oh-my-zsh/plugins/droplr/droplr.plugin.zsh b/stow/oh-my-zsh/.oh-my-zsh/plugins/droplr/droplr.plugin.zsh deleted file mode 100644 index af0a212..0000000 --- a/stow/oh-my-zsh/.oh-my-zsh/plugins/droplr/droplr.plugin.zsh +++ /dev/null @@ -1,15 +0,0 @@ -# Only compatible with MacOS -[[ "$OSTYPE" == darwin* ]] || return - -droplr() { - if [[ $# -eq 0 ]]; then - echo You need to specify a parameter. >&2 - return 1 - fi - - if [[ "$1" =~ ^https?:// ]]; then - osascript -e 'tell app "Droplr" to shorten "'"$1"'"' - else - open -ga /Applications/Droplr.app "$1" - fi -}