|
@ -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 "\$@" |
|
|
} |
|
|
} |
|
|