Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Set screen title to current process name.

  • Loading branch information...
commit b314bc3d743f2d2f9ec7ab4acf2e453a655968d8 1 parent d9ed733
@dram authored
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
2  .screenrc
@@ -14,3 +14,5 @@ defscrollback 5000
attrcolor b ".I"
# erase background with current bg color
defbce "on"
+
+shelltitle "% |:"
Please sign in to comment.
Something went wrong with that request. Please try again.