From 0041597afdd9ea30a67f3598d6cd2d9daf616207 Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Tue, 11 Jun 2019 20:31:41 +0100 Subject: [PATCH] Use environment variables for lynx config and lss locations instead of command line. --- .bash_profile | 2 ++ .bashrc | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.bash_profile b/.bash_profile index d4057a9..62c02f5 100644 --- a/.bash_profile +++ b/.bash_profile @@ -17,6 +17,8 @@ export VISUAL="$EDITOR" _PLATFORM="$(uname -s)" if [ "$_PLATFORM" = "Linux" ]; then export I_WANT_A_BROKEN_PS=1 + export LYNX_CFG="$HOME/.lynx.cfg" + export LYNX_LSS="$HOME/.lynx.lss" export MANPATH="~/.local/share/man:$MANPATH" hash dircolors >/dev/null 2>&1 && eval "$(dircolors -b ~/.dir_colors)" elif [ "$_PLATFORM" = "Darwin" ]; then diff --git a/.bashrc b/.bashrc index 81137c5..837e955 100644 --- a/.bashrc +++ b/.bashrc @@ -59,7 +59,6 @@ if [ "$_PLATFORM" = "Linux" ]; then hash iftop >/dev/null 2>&1 && alias iftop='TERM=vt100 iftop' hash last less >/dev/null 2>&1 && alias laston='last -a | less' hash ls >/dev/null 2>&1 && alias ls='ls -bFv --color=auto' - hash lynx >/dev/null 2>&1 && alias lynx='lynx -cfg=~/.lynx.cfg -lss=~/.lynx.lss' hash minicom >/dev/null 2>&1 && alias minicom='minicom -m -c on' hash mkpasswd >/dev/null 2>&1 && alias pwgen='mkpasswd -m sha512crypt' hash pine >/dev/null 2>&1 && alias pine='pine -p "{mail.open-source.co.uk/Service=IMAP/User=darren@afterdark.org.uk/TLS/NoValidate-Cert/NoRsh}.pinerc"'