mirror of
https://github.com/rwxrob/dot
synced 2024-11-14 18:12:56 +00:00
27 lines
652 B
Bash
Executable File
27 lines
652 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# be sure to install the ca-certificates package
|
|
|
|
# see ../lynx/README.md for configs
|
|
|
|
lynxpath=/usr/bin/lynx
|
|
[[ ! -x $lynxpath ]] && lynxpath=/usr/local/bin/lynx
|
|
|
|
useragent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_0) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.79 Safari/537.1 Lynx"
|
|
|
|
if [ -e "$HOME/.config/lynx/lynx.cfg" ];then
|
|
export LYNX_CFG="$HOME/.config/lynx/lynx.cfg"
|
|
fi
|
|
|
|
if [ -e "$HOME/.config/lynx/lynx.lss" ];then
|
|
export LYNX_LSS="$HOME/.config/lynx/lynx.lss"
|
|
fi
|
|
|
|
if [ ! -x "$lynxpath" ]; then
|
|
echo "Doesn't look like lynx is installed."
|
|
exit 1
|
|
fi
|
|
|
|
exec "$lynxpath" --useragent="$useragent" "$@"
|
|
|