Fix bug where .bashrc was added to history

This commit is contained in:
The Magician 2023-11-07 17:02:59 +00:00
parent 9319931386
commit e8c7d4a775
1 changed files with 2 additions and 3 deletions

View File

@ -10,10 +10,9 @@ export EDITOR="vi"
export VISUAL="vi" export VISUAL="vi"
# The Prompt # The Prompt
export PS1='\u@\h:\W\$ ' export PS1='\[\e[38;2;161;161;0m\]\u\[\e[0m\]@\[\e[34m\]\h\[\e[0m\]:\[\e[32m\]\W\[\e[0m\]\$ '
# History settings # History settings
set -o history # Enable history
shopt -s histappend # Append to the history file instead of overwriting it shopt -s histappend # Append to the history file instead of overwriting it
HISTCONTROL=ignoreboth # Don't put duplicate lines or lines beginning with a space in the history file HISTCONTROL=ignoreboth # Don't put duplicate lines or lines beginning with a space in the history file
HISTSIZE=-1 # Don't limit the number of history lines stored HISTSIZE=-1 # Don't limit the number of history lines stored
@ -21,7 +20,7 @@ HISTFILESIZE=-1 # Don't truncate the history when reading the history fil
# Pager settings # Pager settings
# Use lesspipe if it exists # Use lesspipe if it exists
if command -v lesspipe; then if command -v lesspipe >/dev/null; then
export LESSOPEN="| $(command -v lesspipe) %s"; export LESSOPEN="| $(command -v lesspipe) %s";
export LESSCLOSE="$(command -v lesspipe) %s %s"; export LESSCLOSE="$(command -v lesspipe) %s %s";
fi fi