all repos — dotfiles @ 1bc68c8e1ecbc599d7c4916f4f8ba06cbd99cafb

my *nix dotfiles

bin/durl (view raw)

 1
 2
 3
 4
 5
 6
#!/usr/bin/env bash

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