1
0
Fork 0

update `.bashrc`

urosm 2024-01-14 23:24:31 +01:00
parent 979e548ac9
commit 39dfe9b38a
1 changed files with 7 additions and 3 deletions

10
bashrc
View File

@ -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