--- a/.bash_completion Wed Oct 31 11:13:37 2012 +0200
+++ b/.bash_completion Wed Oct 31 17:24:50 2012 +0200
@@ -58,7 +58,7 @@
_mycd() {
local cur
cur=${COMP_WORDS[COMP_CWORD]}
- if [[ -z "${CDPATH:-}" || "$cur" == ?(.)?(.)/* ]]; then
+ if [[ -z "${CDPATH:-}" ]] || [[ $cur == ?(.)?(.)/* ]] || [[ $cur == '~'/* ]]; then
COMPREPLY=( $(compgen -d -- "$cur") )
return 0
fi
--- a/.bashrc Wed Oct 31 11:13:37 2012 +0200
+++ b/.bashrc Wed Oct 31 17:24:50 2012 +0200
@@ -18,6 +18,11 @@
;;
esac
+# Add current dir to xterm title.
+case "$TERM" in
+ xterm*) PS1='\[\033]0;\u@\h+bash: \w\007\]'$PS1 ;;
+esac
+
if command -v dircolors >/dev/null 2>&1 && [[ -f ~/.dircolors ]]; then
eval "`dircolors -b ~/.dircolors`"
fi