diff --git a/precise/base-0k/hooks/install b/precise/base-0k/hooks/install index 18011df..172f18e 100755 --- a/precise/base-0k/hooks/install +++ b/precise/base-0k/hooks/install @@ -82,7 +82,16 @@ EOF cat <> /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_name="prompt.\$1.rc" @@ -93,6 +102,8 @@ prompt() { } +## Git log command + function glog() { git log --graph --pretty=tformat:%C\(yellow\ normal\)%h%Creset\ %C\(blue\ normal\)%an%Creset\ %s\ %Cgreen%d%Creset -n 20 "\$@" }