all repos — dotfiles @ 1b4587889cb88f62c147a396a0065b2bd7b1febb

my *nix dotfiles

bin/durl (view raw)

1#!/usr/bin/env bash
2
3regex='(https?|ftp|mailto)://[-A-Za-z0-9\+&@#/%?=~_|!:,.;]*[-A-Za-z0-9\+&@#/%=~_|]'
4url=$(grep -Eo "$regex" | dmenu -p "url:" -w "$WINDOWID" | tr -d '\n')
5[[ "$url" = "" ]] && exit
6vimb -e $(</tmp/tabbed.xid) "$url" &