ref(bash/alias): some refs

This commit is contained in:
TheK4n 2023-11-17 10:51:30 +03:00
parent 3880668f25
commit 8d2d975c7c
2 changed files with 14 additions and 4 deletions

View File

@ -2,11 +2,12 @@ _f() { true ; }
# colors # colors
if [ -x "$(command -v dircolors)" ]; then if [ -x "$(command -v dircolors)" ]; then
export LS_OPTIONS="--color=auto"
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias grep='grep --color=auto' alias grep='grep $LS_OPTIONS'
alias fgrep='fgrep --color=auto' alias fgrep='fgrep $LS_OPTIONS'
alias ls='ls -v --color=auto' alias ls='ls -v $LS_OPTIONS'
fi fi
alias l.='ls -AFv --ignore="*"' alias l.='ls -AFv --ignore="*"'

View File

@ -3,14 +3,23 @@ umask 022
export EDITOR="nvim" export EDITOR="nvim"
export VISUAL="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 CDPATH=:~:~/code
export HISTSIZE=10000 export HISTSIZE=10000
export HISTFILESIZE=10000 export HISTFILESIZE=10000
export HISTCONTROL=ignoreboth:erasedups
export HISTTIMEFORMAT="%F %T " export HISTTIMEFORMAT="%F %T "
export HISTIGNORE="&:l[lsa\.]:[bf]g:exit:q:clear:c:history:h" export HISTIGNORE="&:l[lsa\.]:[bf]g:exit:q:clear:c:history:h"
export BROWSERCLI=w3m
test -z "$BROWSER" && export BROWSER=firefox test -z "$BROWSER" && export BROWSER=firefox