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