Skip to content

Commit

Permalink
crank my history size + append to bash history on every command
Browse files Browse the repository at this point in the history
  • Loading branch information
redterror committed Jul 23, 2022
1 parent 8bec70b commit 92dec76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bash/prompt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ function variable_width_prompt {
echo -n
}

PROMPT_COMMAND=variable_width_prompt export PROMPT_COMMAND
# Append our history on every command + set the variable_width
PROMPT_COMMAND="history -a;variable_width_prompt" export PROMPT_COMMAND

export PS1='\[\e[35;40m\]\u\[\e[37;40m\]@\[\e[35;40m\]\h\[\e[37;40m\]:\[\e[36;40m\]$newPWD\[\e[37;40m\]$(__git_ps1 "(\[$(parse_git_dirty)\]%s\[\e[37;40m\])")\$ '

Expand Down
2 changes: 1 addition & 1 deletion bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ shopt -s histappend

# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=10000
HISTFILESIZE=20000
HISTFILESIZE=50000

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
Expand Down

0 comments on commit 92dec76

Please sign in to comment.