mirror of
https://github.com/sbrl/bin.git
synced 2018-01-10 21:33:46 +00:00
Upgrade history handling
This commit is contained in:
parent
ca8710dfc0
commit
d66e7b4a33
1 changed files with 5 additions and 2 deletions
7
.bashrc
7
.bashrc
|
@ -18,8 +18,8 @@ shopt -s histappend
|
|||
shopt -s histverify
|
||||
|
||||
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
|
||||
HISTSIZE=1000
|
||||
HISTFILESIZE=2000
|
||||
HISTSIZE=4096
|
||||
HISTFILESIZE=4096
|
||||
|
||||
# check the window size after each command and, if necessary,
|
||||
# update the values of LINES and COLUMNS.
|
||||
|
@ -71,6 +71,9 @@ prompt_colon()
|
|||
|
||||
set_bash_prompt()
|
||||
{
|
||||
# Update the history file after every command
|
||||
# This prevents a loss of history in the case of an unclean exit
|
||||
history -a
|
||||
PS1="${debian_chroot:+($debian_chroot)}${HOST_COLOUR}\u@\H\[\033[00m\]$(prompt_colon)\[\033[01;34m\]\w\[\033[00m\]"
|
||||
if [[ "$UID" = 0 ]]; then
|
||||
PS1="${PS1}# "
|
||||
|
|
Loading…
Reference in a new issue