1
0
Fork 0
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:
Starbeamrainbowlabs 2016-05-02 17:50:15 +01:00
parent ca8710dfc0
commit d66e7b4a33

View file

@ -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}# "