Permalink
Browse files

Set screen title to current process name.

  • Loading branch information...
1 parent d9ed733 commit b314bc3d743f2d2f9ec7ab4acf2e453a655968d8 @dram committed Sep 5, 2012
Showing with 11 additions and 1 deletion.
  1. +9 −1 .bashrc
  2. +2 −0 .screenrc
View
10 .bashrc
@@ -8,7 +8,15 @@ case "$-" in *i*)
export PYTHONSTARTUP=/etc/pythonstart
- export PS1='\e[32m\w\e[31m${?/#0}\e[m\n% '
+ case "$TERM" in
+ screen)
+ trap 'echo -ne "\ek${BASH_COMMAND:0:10}\e\\"' DEBUG
+ export PS1='\e[32m\w\e[31m${?/#0}\e[m\n\ekbash\e\\% '
+ ;;
+ *)
+ export PS1='\e[32m\w\e[31m${?/#0}\e[m\n% '
+ ;;
+ esac
alias ls='ls --color'
alias t='screen -DR'
View
@@ -14,3 +14,5 @@ defscrollback 5000
attrcolor b ".I"
# erase background with current bg color
defbce "on"
+
+shelltitle "% |:"

0 comments on commit b314bc3

Please sign in to comment.