diff options
author | Leonid Volnitsky <Leonid@Volnitsky.com> | 2008-11-18 09:36:09 +0200 |
---|---|---|
committer | Leonid Volnitsky <Leonid@Volnitsky.com> | 2008-11-18 09:36:09 +0200 |
commit | a0c62a25ce78d4deab8237d083dbaa4362c01474 (patch) | |
tree | 4dd60cb25fcf1a4c31feaf184b13f410b32feb83 /README | |
parent | -- minor: docs (diff) | |
download | git-prompt-a0c62a25ce78d4deab8237d083dbaa4362c01474.tar.gz git-prompt-a0c62a25ce78d4deab8237d083dbaa4362c01474.tar.bz2 git-prompt-a0c62a25ce78d4deab8237d083dbaa4362c01474.zip |
added test if shell is interactive
Diffstat (limited to 'README')
-rw-r--r-- | README | 34 |
1 files changed, 24 insertions, 10 deletions
@@ -4,19 +4,35 @@ GIT Prompt for BASH http://github.com/lvv/git-prompt/wikis +INSTALL + + Put following command in our profile in interactive section: + + . /etc/git-prompt.sh + + If there are no interactivity test in your profile, then above command should be: + + [[ $- == *i* ]] && . /etc/git-prompt.sh + + DEPENDENCY - bash (tested with v3.2.33) - git (optional) - svn (optional) + + Most of dependencies (except git and svn) are probably already installed on your host. + + bash (tested with v3.2.33) + git (optional) + svn (optional) sed - tput (from terminfo) - tty - grep - locale - id + tput (terminfo) + tty (core utils) + grep + locale (glibc) + id (core utils) TODO + + - TO FIX: when file list is too long, git-prompt truncates it. Sometimes this truncation can be on color escape sequence. - external config at /etc/git-prompt.conf and ~/.git-prompt.conf - wiki/screen-shots for labels and svn module - VIM module needs to be moved out of GIT module @@ -26,7 +42,5 @@ DONE - limit number of files displayed - - leonid@volnitsky.com http://github.com/lvv/git-prompt/tree/master |