From e8c7d4a775a87c21fec04f2be86e84b093a77f86 Mon Sep 17 00:00:00 2001 From: The Magician Date: Tue, 7 Nov 2023 17:02:59 +0000 Subject: [PATCH] Fix bug where .bashrc was added to history --- bash/.bashrc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bash/.bashrc b/bash/.bashrc index e0df287..d6ded6f 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -10,10 +10,9 @@ export EDITOR="vi" export VISUAL="vi" # 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 -set -o history # Enable history 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 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 # Use lesspipe if it exists -if command -v lesspipe; then +if command -v lesspipe >/dev/null; then export LESSOPEN="| $(command -v lesspipe) %s"; export LESSCLOSE="$(command -v lesspipe) %s %s"; fi