From a0c62a25ce78d4deab8237d083dbaa4362c01474 Mon Sep 17 00:00:00 2001 From: Leonid Volnitsky Date: Tue, 18 Nov 2008 09:36:09 +0200 Subject: added test if shell is interactive --- README | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) (limited to 'README') diff --git a/README b/README index 1e4b73e..c39e778 100644 --- a/README +++ b/README @@ -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 -- cgit v1.2.3