From 8d2d975c7c1cc0a7e10b55935affb20f0dceac8b Mon Sep 17 00:00:00 2001 From: Thek4n Date: Fri, 17 Nov 2023 10:51:30 +0300 Subject: [PATCH] ref(bash/alias): some refs --- home/user/.config/bash/aliases | 7 ++++--- home/user/.config/bash/export | 11 ++++++++++- 2 files changed, 14 insertions(+), 4 deletions(-) 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