diff --git a/.bashrc b/.bashrc index 7984261..a7a4209 100644 --- a/.bashrc +++ b/.bashrc @@ -24,9 +24,6 @@ bind "set visible-stats on" # prompt PS1="\[\e[1m\]\u@\h\[\e[0m\]:\[\e[1;34m\]\w\[\e[0m\]\[\e[1m\]\$\[\e[0m\] " -if [ -z $TERMUX_VERSION ]; then - PS1="\[\e[1m\]urosm@trento\[\e[0m\]:\[\e[1;34m\]\w\[\e[0m\]\[\e[1m\]\$\[\e[0m\] " -fi # title PS1="\[\e]0;\u@\h:\w\a\]$PS1" @@ -39,6 +36,13 @@ alias ls="ls --color=auto" alias ll="ls -AF1" alias lll="ls -AFlh" +# history +shopt -u histappend +HISTSIZE=-1 +HISTFILESIZE=-1 +HISTIGNORE='exit:q:ls:ll:lll' +HISTCONTROL='ignoreboth:erasedups' + # bash completion if ! shopt -oq posix; then if [ -f /usr/share/bash-completion/bash_completion ]; then