summaryrefslogtreecommitdiff
path: root/index.txt
diff options
context:
space:
mode:
authorLeonid Volnitsky <Leonid@Volnitsky.com>2009-04-16 20:33:14 +0300
committerLeonid Volnitsky <Leonid@Volnitsky.com>2009-04-17 15:48:41 +0300
commit109ea33efe6016e8edda242fbd3dc7512442f45e (patch)
treeee8c28897a0ead20a2471b4e4488be4debe3c46f /index.txt
parentfixed: not bash prompt escapes around bell (diff)
downloadgit-prompt-109ea33efe6016e8edda242fbd3dc7512442f45e.tar.gz
git-prompt-109ea33efe6016e8edda242fbd3dc7512442f45e.tar.bz2
git-prompt-109ea33efe6016e8edda242fbd3dc7512442f45e.zip
current-command is show in label (xterm title)
reimplemented trough trap-debug http://www.davidpashley.com/articles/xterm-titles-with-bash.html
Diffstat (limited to 'index.txt')
-rw-r--r--index.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/index.txt b/index.txt
index 68ab294..541d504 100644
--- a/index.txt
+++ b/index.txt
@@ -1,4 +1,4 @@
-// This is asciidoc file. The HTML rendered page is at: http://volnitsky.com/project/git-prompt
+// This is raw asciidoc file. The HTML rendered page is http://volnitsky.com/project/git-prompt
= GIT Prompt
@@ -46,18 +46,19 @@ GIT. Enable if needed in <<config,config>>
Labels are visual cues to help figure out what terminal is running what command.
It is generalization of xterm-title but differ from xterm-title that it
-can be displayed in other places (on screen windows titles for example).
+can be displayed in other places (on Screen(1) windows titles for example).
On screenshot below they are in red ovals.
image:screenshot-labels.png["labels screenshot", width="300", link="screenshot-labels.png"]
The `screen(1)` status line at bottom of smaller gnome-terminal is displayed with
-following `~/.screenrc` line:
+following line in `~/.screenrc`:
---------
caption always "%{= kw}%-w%{= bw}%n %t%{-}%+w %-= @%H - %LD %d %LM - %c"
---------
+//////////////////
We don't need to do any thing for something like `cd` or `ssh` (if you have
git-prompt on remote host).
For external command we need set label before it is executed.
@@ -74,6 +75,7 @@ man() { set_shell_title "man $@"; /usr/bin/man "$@"; }; export -f man
Note that vim sets xterm title , but we still use wrapper so that
`screen` will have labels too.
Function `set_shell_title` defined in `git-prompt.sh`.
+///////////////////