update
This commit is contained in:
parent
84737666e1
commit
62429bedd0
@ -4,6 +4,9 @@
|
||||
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
export HISTSIZE=2000
|
||||
export HISTFILESIZE=2000
|
||||
|
||||
colors() {
|
||||
local fgc bgc vals seq0
|
||||
|
||||
@ -36,7 +39,7 @@ colors() {
|
||||
# Change the window title of X terminals
|
||||
case ${TERM} in
|
||||
xterm*|rxvt*|Eterm*|aterm|kterm|gnome*|interix|konsole*)
|
||||
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\007"'
|
||||
PROMPT_COMMAND='history -a;history -n;echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\007"'
|
||||
;;
|
||||
screen*)
|
||||
PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\033\\"'
|
||||
@ -113,6 +116,8 @@ shopt -s expand_aliases
|
||||
|
||||
# Enable history appending instead of overwriting. #139609
|
||||
shopt -s histappend
|
||||
shopt -s cmdhist
|
||||
export HISTCONTROL=ignoreboth:erasedups
|
||||
|
||||
#
|
||||
# # ex - archive extractor
|
||||
|
Loading…
Reference in New Issue
Block a user