Martin Gondermann
5c49f42858
Added sourcing of git_prompt_help.sh to gitprompt.sh
12 years ago
Alan Stebbens
4e7fcb290b
aks: don't cause errors if the git-prompt-colors.sh file is missing
12 years ago
Alan Stebbens
ae1c1d1ef0
aks:externalize git prompt colors; add help func
12 years ago
Alan Stebbens
f60217ae2c
aks: added Cyan as a color, and used it for untracked files. Updated README
12 years ago
Alan Stebbens
817bdf3584
aks: added gitstatus.sh, and configured it in gitprompt.sh
12 years ago
Alan Stebbens
0704670f8e
aks: added gitstatus.sh, and configured it in gitprompt.sh
12 years ago
Ralf Steuerwald
100e7034c5
Show number of stash entries in bash prompt
12 years ago
ogr3
e70a107295
async_run and disown in subshell when calling to suppress Done output
12 years ago
ogr3
00a79b0777
revert
12 years ago
fredup
051ffa0c2e
Run the async_run and disown in a subshell to suppress Done output
12 years ago
Martin Gondermann
2b47ae9d7c
Disown call terminated other background tasks
...
Fixes #28
12 years ago
Danil Kutkevich
e1aeba7be6
Added callback function to tweak prompt dynamicly
12 years ago
Denny Schäfer
5edb15b73e
Fix indent, Strip traling spaces and convert tabs to spaces
12 years ago
Martin Gondermann
b905a6fb94
Made the check for upstream changes asynchronous. Fixes #23
12 years ago
Denny Schäfer
1409feed8f
Fix indent and Strip traling spaces
12 years ago
Björn Westlin
1d874d50c5
Fix for when spaces exists in repo path
12 years ago
Martin Gondermann
1f566c7be3
GIT_PROMPT_END was broken on directories without repository
...
fixes #19
12 years ago
Martin Goldhahn
c31fddb418
fixed problems when pre-set PROMPT_COMMAND has trailing semi-colon
12 years ago
Martin Goldhahn
ff7575ccdc
apply git prompt only on directories belonging to a git repository
13 years ago
Martin Goldhahn
238ab58560
move configuration of git_prompt_dir inside a function
13 years ago
Martin Gondermann
dfc29d14b4
No more error on new repository. Fixes #14
13 years ago
Martin Gondermann
159c5e32d4
No more error on new repository. Fixes #9
13 years ago
Martin Gondermann
08355a2306
Fixed tabs
13 years ago
Martin Goldhahn
d22e1b495e
keep old prompt on non-git repository folders
13 years ago
Martin Gondermann
c869a349f1
PROMPT_COMMAND=$PROMPT_COMMAND;setGitPrompt did not work correctly (fixes Issue #13 )
13 years ago
Martin Gondermann
d7f5d3bb17
Changed the last line of gitprompt.sh to
...
PROMPT_COMMAND=$PROMPT_COMMAND;setGitPrompt
This would allow previous PROMPT_COMMAND's too (for example for seting the window title).
Fixes #3
13 years ago
Martin Gondermann
43a4f3c9ee
Fixed Issue #6 : Definig $PROMPT_START $PROMPT_END out of gitprompt.sh
...
It is now possible to override PROMPT_START and PROMPT_END by exporting the variables GIT_PROMPT_START and GIT_PROMPT_END
13 years ago
Martin Goldhahn
f36da50f68
use 24h time format
13 years ago
Martin Goldhahn
56e9e243a3
script works for any installation directory
13 years ago
Marcin Sztolcman
ca5f2c7f28
use __GIT_STATUS_CMD instead of __GIT_PROMPT_DIR
13 years ago
Sylvain Defresne
dee331fb47
Prevent pollution of the global namespace & properly quote variables
13 years ago
Miguel Duarte
6be8b0b273
Fetch new remote revisions every other GIT_PROMPT_FETCH_TIMEOUT minutes
...
(5 is the default)
13 years ago
shohag
32d3de91d7
Adding virtualenv with git prompt
13 years ago
Carlo Sciolla
8993e65177
Enable custom __GIT_PROMPT_DIR as an env var
...
I'd like to directly point bash to where I checked out the source code.
With this change I can customize at least the base directory with an environment variable while the default value is still there.
13 years ago
Martin Gondermann
6f4c272200
Initial commit
13 years ago