ref(bash/alias): some refs
This commit is contained in:
parent
3880668f25
commit
8d2d975c7c
@ -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="*"'
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user