diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2009-10-18 15:02:52 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2009-10-18 15:02:52 +0200 |
commit | 26e619a342aa3495df9b358d110ff76b5b78eb41 (patch) | |
tree | 3c9eeb1b0de12f78e02ad40e0fe7409a2066b70d /bashrc/common | |
parent | 5bc7eb9c62a88e393cf8a88121b816f14f1ca7a7 (diff) | |
download | dotfiles-26e619a342aa3495df9b358d110ff76b5b78eb41.tar.gz dotfiles-26e619a342aa3495df9b358d110ff76b5b78eb41.tar.xz dotfiles-26e619a342aa3495df9b358d110ff76b5b78eb41.zip |
readded screen title magic
Diffstat (limited to 'bashrc/common')
-rw-r--r-- | bashrc/common/screen.sh | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/bashrc/common/screen.sh b/bashrc/common/screen.sh index 734ccfb..28a4ef7 100644 --- a/bashrc/common/screen.sh +++ b/bashrc/common/screen.sh @@ -2,18 +2,13 @@ set_screen_title() { # prevent reset_screen_title from calling set_screen_title - if [[ $BASH_COMMAND != "reset_screen_title" ]]; then + if [[ $BASH_COMMAND != "__make_propt" ]]; then echo -ne "\ek$(id -un)@$(hostname):${BASH_COMMAND/ *}\e\\" fi } -reset_screen_title() { - echo -ne "\ek$(id -un)@$(hostname)\e\\" -} - init_preexec_hack() { if [[ $TERM == "screen" ]]; then - export PROMPT_COMMAND=reset_screen_title trap set_screen_title DEBUG fi } |