be more friendly to people who have no XDG variables set + bitter checking and such
[uzbl-mobile] / examples / data / uzbl / scripts / history.sh
1 #!/bin/bash
2 #TODO: strip 'http://' part
3 file=${XDG_DATA_HOME:-$HOME/.local/share}/uzbl/history
4 [ -d `dirname $file` ] || exit 1
5 echo "$8 $6 $7" >> $file