Commits

Roger Pate  committed e0b1593

Show current command in xterm title

  • Participants
  • Parent commits 1907602

Comments (0)

Files changed (1)

 [ -x ~/code/sjl-t/t.py -a -d ~/tasks ] && {
   alias t="$HOME/code/sjl-t/t.py --task-dir $HOME/tasks --list tasks"
 }
+
+
+# http://www.davidpashley.com/articles/xterm-titles-with-bash.html
+case $TERM in
+rxvt|xterm*)
+  # functrace screws with my cds function, maybe others?
+  #set -o functrace
+  trap 'echo -ne "\e]0;$BASH_COMMAND\007"' DEBUG
+  ;;
+esac