added lynx for text browsing
This commit is contained in:
parent
7cb8c4bc28
commit
760b781d93
23
scripts/lynx
Executable file
23
scripts/lynx
Executable file
@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# be sure to install the ca-certificates package
|
||||
|
||||
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" "$@"
|
||||
Reference in New Issue
Block a user