diff --git a/home/user/.config/bash/aliases b/home/user/.config/bash/aliases index 0610694..3104311 100644 --- a/home/user/.config/bash/aliases +++ b/home/user/.config/bash/aliases @@ -2,11 +2,12 @@ _f() { true ; } # colors if [ -x "$(command -v dircolors)" ]; then + export LS_OPTIONS="--color=auto" test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" - alias grep='grep --color=auto' - alias fgrep='fgrep --color=auto' - alias ls='ls -v --color=auto' + alias grep='grep $LS_OPTIONS' + alias fgrep='fgrep $LS_OPTIONS' + alias ls='ls -v $LS_OPTIONS' fi alias l.='ls -AFv --ignore="*"' diff --git a/home/user/.config/bash/export b/home/user/.config/bash/export index d8e9d37..8c7f97f 100644 --- a/home/user/.config/bash/export +++ b/home/user/.config/bash/export @@ -3,14 +3,23 @@ umask 022 export EDITOR="nvim" export VISUAL="nvim" -export PAGER="less -niSR -+X -+F" + +LESS_OPTIONS+="-nMiSR -+X -+F" +export LESS_OPTIONS + +PAGER="less" +PAGER+=" $LESS_OPTIONS" +export PAGER + export CDPATH=:~:~/code export HISTSIZE=10000 export HISTFILESIZE=10000 +export HISTCONTROL=ignoreboth:erasedups export HISTTIMEFORMAT="%F %T " export HISTIGNORE="&:l[lsa\.]:[bf]g:exit:q:clear:c:history:h" +export BROWSERCLI=w3m test -z "$BROWSER" && export BROWSER=firefox