dotfiles

Configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | Submodules | README | LICENSE

open-bookmark.sh (265B)


      1 #!/usr/bin/env bash
      2 
      3 url=$((cat ~/.w3m/bookmark.html | \
      4     grep 'href="htt' | \
      5     sed 's/<\/.*>//g' | \
      6     sed 's/.*<a href="//;s/">/ /;s/<\/a>//' ;
      7     cat ~/doc/bookmark.txt) | \
      8     dmenu_themed -i -p "Go:" | awk '{ print $1 }')
      9 
     10 ${BROWSER:-firefox} "$url"