more portability on shell scripts
[uzbl-mobile] / examples / data / uzbl / scripts / history.sh
1 #!/bin/sh
2 #TODO: strip 'http://' part
3
4 file=${XDG_DATA_HOME:-$HOME/.local/share}/uzbl/history
5 [ -d `dirname $file` ] || exit 1
6 echo "$8 $6 $7" >> $file