X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/e849519a091cd4d363a42db6ca192d442180eded..b617a6a0d5df3b7dbb86a72c6cb0b875ac396810:/dot/bashrc diff --git a/dot/bashrc b/dot/bashrc index 4f3e5ba..990d645 100644 --- a/dot/bashrc +++ b/dot/bashrc @@ -27,7 +27,7 @@ __mdw_source_if_exists /etc/bash_completion "$HOME/.bash_completion" __mdw_set_prompt_hacks () { case "$TERM" in - linux*|screen*|xterm*|vt100*|eterm*) + linux*|screen*|xterm*|putty*|vt100*|eterm*) case "$(tput bold)" in "") bold="\[$(tput md)\]" unbold="\[$(tput me)\]" ;; *) bold="\[$(tput bold)\]" unbold="\[$(tput sgr0)\]" ;; @@ -35,7 +35,8 @@ __mdw_set_prompt_hacks () { gitcolour="\[$(tput setaf 6)\]" rccolour="\[$(tput setaf 1)\]" uncolour="\[$(tput op)\]" - nl="\[ \]" + nl="\[ +\]" ;; esac host='\h' dir=' \w' @@ -72,6 +73,7 @@ shopt -s extglob if (( ${BASH_VERSINFO[0]} >= 4 )); then shopt -s globstar; fi shopt -s gnu_errfmt shopt -s histappend +set -o histexpand shopt -s histreedit shopt -u histverify shopt -s hostcomplete