update `.bashrc`
parent
979e548ac9
commit
39dfe9b38a
10
bashrc
10
bashrc
|
@ -8,8 +8,11 @@
|
|||
shopt -s checkwinsize
|
||||
|
||||
# history
|
||||
export HISTCONTROL=ignoredups:erasedups
|
||||
export HISTSIZE=-1
|
||||
export HISTFILESIZE=-1
|
||||
shopt -s histappend
|
||||
PROMPT_COMMAND="history -a"
|
||||
PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
|
||||
|
||||
# set the title to user@host:dir
|
||||
PS1="\[\e]0;\u@\h:\w\a\]$PS1"
|
||||
|
@ -43,10 +46,11 @@ alias grep="grep --color"
|
|||
|
||||
# ls
|
||||
alias ls="ls --color"
|
||||
alias ll="ls -AFv1 --group-directories-first"
|
||||
alias ll="ls -AF1L"
|
||||
alias lll="ls -AFlh"
|
||||
|
||||
# nvim
|
||||
alias :e="nvim"
|
||||
alias :e=nvim
|
||||
|
||||
# enable bash completion in interactive shells
|
||||
if ! shopt -oq posix; then
|
||||
|
|
Loading…
Reference in New Issue