Browse Source

new: added history config in default root ``.bashrc``.

postgres
Valentin Lab 12 years ago
parent
commit
d411f2a584
  1. 13
      precise/base-0k/hooks/install

13
precise/base-0k/hooks/install

@ -82,7 +82,16 @@ EOF
cat <<EOF >> /root/.bashrc cat <<EOF >> /root/.bashrc
# Prompt easy management
## History management
export HISTCONTROL=ignoredups
export HISTSIZE=50000
shopt -s histappend
PROMPT_COMMAND='history -a'
## Prompt easy management
prompt() { prompt() {
prompt_name="prompt.\$1.rc" prompt_name="prompt.\$1.rc"
@ -93,6 +102,8 @@ prompt() {
} }
## Git log command
function glog() { function glog() {
git log --graph --pretty=tformat:%C\(yellow\ normal\)%h%Creset\ %C\(blue\ normal\)%an%Creset\ %s\ %Cgreen%d%Creset -n 20 "\$@" git log --graph --pretty=tformat:%C\(yellow\ normal\)%h%Creset\ %C\(blue\ normal\)%an%Creset\ %s\ %Cgreen%d%Creset -n 20 "\$@"
} }

Loading…
Cancel
Save